Fold InsertStridedOp(ConstantOp into ConstantOp) -> ConstantOp.
This pattern comes with vector size threshold to make sure we do not
introduce too many large constants.
This help clean up code created by the Wide Integer Emulation pass.
Paths
| Differential D138739
[mlir][vector] Add fold pattern to constant-fold InsertStridedSliceOp ClosedPublic Authored by kuhar on Nov 25 2022, 3:38 PM.
Details Summary Fold InsertStridedOp(ConstantOp into ConstantOp) -> ConstantOp. This pattern comes with vector size threshold to make sure we do not This help clean up code created by the Wide Integer Emulation pass.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 28 2022, 10:29 AM Closed by commit rGf0fe38035c92: [mlir][vector] Add fold pattern to constant-fold InsertStridedSliceOp (authored by kuhar). · Explain WhyNov 28 2022, 11:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 478295 mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/test/Dialect/Vector/canonicalize.mlir
|