This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Add fold pattern for InsertOp(Constant into Constant)
ClosedPublic

Authored by kuhar on Nov 25 2022, 12:47 PM.

Details

Summary

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, 12:47 PM
kuhar requested review of this revision.Nov 25 2022, 12:47 PM
dcaballe accepted this revision.Nov 25 2022, 7:37 PM

LGTM. Very excited about all the canonicalization patterns that you are adding. Thanks!

mlir/lib/Dialect/Vector/IR/VectorOps.cpp
2120

continous -> continuous? I think I saw the same in the other canonicalization diff that you already landed.

2122

drop llvm::?

This revision is now accepted and ready to land.Nov 25 2022, 7:37 PM
kuhar updated this revision to Diff 478038.Nov 25 2022, 8:00 PM

Address comments

kuhar marked 2 inline comments as done.Nov 25 2022, 8:00 PM
This revision was landed with ongoing or failed builds.Nov 25 2022, 8:03 PM
This revision was automatically updated to reflect the committed changes.