This is an archive of the discontinued LLVM Phabricator instance.

[Canonicalize] Switch the default setting to "top down".
ClosedPublic

Authored by lattner on May 24 2021, 3:46 PM.

Details

Summary

This provides a sizable compile time improvement by seeding
the worklist in an order that leads to less iterations of the
worklist.

This patch only changes the behavior of the Canonicalize pass
itself, it does not affect other passes that use the
GreedyPatternRewrite driver

Diff Detail

Event Timeline

lattner created this revision.May 24 2021, 3:46 PM
lattner requested review of this revision.May 24 2021, 3:46 PM
rriddle accepted this revision.May 24 2021, 3:50 PM

LGTM

This revision is now accepted and ready to land.May 24 2021, 3:50 PM

Thank you for the quick review River! I'm going to let this hang out for a couple days to let people prepare for it.

lattner updated this revision to Diff 347775.May 25 2021, 1:41 PM

Merge other changes in

This revision was landed with ongoing or failed builds.May 25 2021, 1:42 PM
This revision was automatically updated to reflect the committed changes.

It looks like there may be a few failures in toy, can you take a look?

https://lab.llvm.org/buildbot/#/builders/13/builds/8538

taking a look

Fixed in a6a57f03be40, thanks for the head's up!