[Mlir-commits] [mlir] [MLIR][DRR] Fix inconsistent operand and arg index usage (PR #139816)
Xiaomin Liu
llvmlistbot at llvm.org
Sun May 18 12:05:10 PDT 2025
================
@@ -1883,6 +1888,9 @@ def : Pat<(TestEitherOpA (either (TestEitherOpB I32:$arg1, $_),
$x),
(TestEitherOpB $arg2, $x)>;
+def : Pat<(TestEitherOpC ConstantAttr<I32Attr, "0">, (either $arg1, I32:$arg2)),
+ (TestEitherOpB $arg1, $arg2)>;
+
----------------
xl4624 wrote:
Added a test for this in pattern.mlir, also cleaned up surrounding function names to match the style of the rest of the flie.
https://github.com/llvm/llvm-project/pull/139816
More information about the Mlir-commits
mailing list