This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Arithmetic] Use matchPattern to simplify code.
ClosedPublic

Authored by jacquesguan on Apr 22 2022, 12:53 AM.

Details

Summary

This patch replaces some code with matchPattern and move them before the constant folder function in order to avoid redundant invoking.

Diff Detail

Event Timeline

jacquesguan created this revision.Apr 22 2022, 12:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2022, 12:53 AM
jacquesguan requested review of this revision.Apr 22 2022, 12:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2022, 12:53 AM
ftynse accepted this revision.Apr 22 2022, 12:55 AM
This revision is now accepted and ready to land.Apr 22 2022, 12:55 AM

Thanks for the cleanup!

This revision was landed with ongoing or failed builds.Apr 22 2022, 1:43 AM
This revision was automatically updated to reflect the committed changes.