[Mlir-commits] [mlir] [mlir][vector] Add a pattern to fuse extract(constant_mask) (PR #81057)

Diego Caballero llvmlistbot at llvm.org
Wed Feb 7 22:23:58 PST 2024


================
@@ -2039,6 +2039,60 @@ class ExtractOpFromCreateMask final : public OpRewritePattern<ExtractOp> {
   }
 };
 
+// Pattern to rewrite
+// ExtractOp(ConstantMaskOp) -> ConstantMaskOp
+// or
+// ExtractOp(ConstantMaskOp) -> ConstantOp
----------------
dcaballe wrote:

Could you elaborate on when one rewrite is used vs the other?

https://github.com/llvm/llvm-project/pull/81057


More information about the Mlir-commits mailing list