This is an archive of the discontinued LLVM Phabricator instance.

[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
introduce too many large constants.

This help clean up code created by the Wide Integer Emulation pass.

Diff Detail

Event Timeline

kuhar created this revision.Nov 25 2022, 3:38 PM
Herald added a project: Restricted Project. · View Herald Transcript
kuhar requested review of this revision.Nov 25 2022, 3:38 PM
kuhar updated this revision to Diff 478040.Nov 25 2022, 8:09 PM

Rebased

kuhar updated this revision to Diff 478041.Nov 25 2022, 8:10 PM

Add a missing split line

antiagainst accepted this revision.Nov 28 2022, 10:29 AM
This revision is now accepted and ready to land.Nov 28 2022, 10:29 AM