diff options
| author | Mahesh Ravishankar <ravishankarm@google.com> | 2022-11-11 17:10:38 +0000 |
|---|---|---|
| committer | Mahesh Ravishankar <ravishankarm@google.com> | 2022-11-15 20:07:35 +0000 |
| commit | fc367dfa6770fda4adc4e5de79846f22e7e4e215 (patch) | |
| tree | 271b33935aaeaac87e22f05dcfccf9e0933454d0 /mlir/lib/Transforms/ControlFlowSink.cpp | |
| parent | 9332ddfba69c38f9ceef4175b042fba0bb8e67bb (diff) | |
[mlir] Remove `Transforms/SideEffectUtils.h` and move the methods into `Interface/SideEffectInterfaces.h`.
The methods in `SideEffectUtils.h` (and their implementations in
`SideEffectUtils.cpp`) seem to have similar intent to methods already
existing in `SideEffectInterfaces.h`. Move the decleration (and
implementation) from `SideEffectUtils.h` (and `SideEffectUtils.cpp`)
into `SideEffectInterfaces.h` (and `SideEffectInterface.cpp`).
Also drop the `SideEffectInterface::hasNoEffect` method in favor of
`mlir::isMemoryEffectFree` which actually recurses into the operation
instead of just relying on the `hasRecursiveMemoryEffectTrait`
exclusively.
Differential Revision: https://reviews.llvm.org/D137857
Diffstat (limited to 'mlir/lib/Transforms/ControlFlowSink.cpp')
| -rw-r--r-- | mlir/lib/Transforms/ControlFlowSink.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/ControlFlowSink.cpp b/mlir/lib/Transforms/ControlFlowSink.cpp index 1000a79c7162..4e1dfa1c7c83 100644 --- a/mlir/lib/Transforms/ControlFlowSink.cpp +++ b/mlir/lib/Transforms/ControlFlowSink.cpp @@ -19,7 +19,6 @@ #include "mlir/Interfaces/ControlFlowInterfaces.h" #include "mlir/Interfaces/SideEffectInterfaces.h" #include "mlir/Transforms/ControlFlowSinkUtils.h" -#include "mlir/Transforms/SideEffectUtils.h" namespace mlir { #define GEN_PASS_DEF_CONTROLFLOWSINK |
