llvm-project/mlir/lib/Transforms/Utils
Uday Bondhugula 0c29f45ac9 [MLIR] Fix dialect conversion cancelRootUpdate
Fix dialect conversion ConversionPatternRewriter::cancelRootUpdate: the
erasure of operations here from the list of root update was off by one.
Should have been:
```
rootUpdates.erase(rootUpdates.begin() + (rootUpdates.rend() - it - 1));
```
instead of
```
rootUpdates.erase(rootUpdates.begin() + (rootUpdates.rend() - it));
```

or more directly:
```
rootUpdates.erase(it.base() - 1)
```

While on this, add an assertion to improve dev experience when a cancel is
called on an op on which a root update hasn't been started.

Differential Revision: https://reviews.llvm.org/D105397
2021-07-06 15:19:49 +05:30
..
CMakeLists.txt [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
DialectConversion.cpp [MLIR] Fix dialect conversion cancelRootUpdate 2021-07-06 15:19:49 +05:30
FoldUtils.cpp [GreedyPatternRewriter] Introduce a config object that allows controlling internal parameters. NFC. 2021-05-24 12:40:40 -07:00
GreedyPatternRewriteDriver.cpp [GreedyPatternRewriter] Introduce a config object that allows controlling internal parameters. NFC. 2021-05-24 12:40:40 -07:00
InliningUtils.cpp Add hook for dialect specializing processing blocks post inlining calls 2021-06-16 12:53:21 -07:00
LoopFusionUtils.cpp [MLIR][Affine] Add utility to check if the slice is valid 2021-04-01 14:52:22 +05:30
LoopUtils.cpp [MLIR] Fix generateCopyForMemRefRegion 2021-06-30 10:24:10 +05:30
RegionUtils.cpp [mlir][NFC] Add a using directive for llvm::SetVector 2021-04-15 16:09:34 -07:00
Utils.cpp [mlir] Normalize dynamic memrefs with a map of tiled-layout. 2021-05-24 08:39:36 +05:30