[Mlir-commits] [mlir] [mlir][Vector] Add support for poison indices to `Extract/IndexOp` (PR #123488)
Kunwar Grover
llvmlistbot at llvm.org
Tue Jan 28 00:52:37 PST 2025
================
@@ -2257,6 +2295,7 @@ void ExtractOp::getCanonicalizationPatterns(RewritePatternSet &results,
ExtractOpFromBroadcast, ExtractOpFromCreateMask>(context);
results.add(foldExtractFromShapeCastToShapeCast);
results.add(foldExtractFromFromElements);
+ results.add(canonicalizePoisonIndexInsertExtractOp<ExtractOp>);
----------------
Groverkss wrote:
I posted another comment about this, we probably don't need to duplicate something that's in the folder here.
But no strong opinion, if you think we want to keep it here, we can, and then we can discuss in another pr if we want folders in the canonicalizer or not like this (other folders seem to also be here, which is weird to me).
https://github.com/llvm/llvm-project/pull/123488
More information about the Mlir-commits
mailing list