[Mlir-commits] [mlir] [mlir][Transforms][NFC] Move `ReconcileUnrealizedCasts` implementation (PR #104671)
Markus Böck
llvmlistbot at llvm.org
Sat Aug 17 03:30:07 PDT 2024
================
@@ -39,63 +40,10 @@ struct ReconcileUnrealizedCasts
ReconcileUnrealizedCasts() = default;
void runOnOperation() override {
- // Gather all unrealized_conversion_cast ops.
- SetVector<UnrealizedConversionCastOp> worklist;
+ SmallVector<UnrealizedConversionCastOp> ops;
getOperation()->walk(
[&](UnrealizedConversionCastOp castOp) { worklist.insert(castOp); });
----------------
zero9178 wrote:
```suggestion
[&](UnrealizedConversionCastOp castOp) { ops.insert(castOp); });
```
https://github.com/llvm/llvm-project/pull/104671
More information about the Mlir-commits
mailing list