[mlir][Transform] Fix dropReverseMapping early exit condition
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Thu, 13 Oct 2022 15:13:25 +0000 (08:13 -0700)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Thu, 13 Oct 2022 15:30:45 +0000 (08:30 -0700)
commitd8cab3f407070c6d80396553ce024e17a0659b04
tree913400999851e919923278240feb481823be145e
parentf386f7690d3aa49994f4645c6e30463c1e221bc6
[mlir][Transform] Fix dropReverseMapping early exit condition

Previously, the erasure would not trigger and result in surprising behavior.

Differential Revision: https://reviews.llvm.org/D135881
mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
mlir/test/Dialect/Transform/test-interpreter.mlir
mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.cpp
mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.td