This is an archive of the discontinued LLVM Phabricator instance.

[SimplifyCFG] Delay phi-to-select until the end of module simplification
AbandonedPublic

Authored by john.brawn on Aug 14 2018, 10:10 AM.

Details

Reviewers
javed.absar
Summary

Converting a phi to select can prevent some function simplification optimizations from happening (e.g. both GVN and GVNHoist can understand phis but not selects) so it's worthwhile to delay doing this conversion until after these optimisations have happened.

Diff Detail

Event Timeline

john.brawn created this revision.Aug 14 2018, 10:10 AM
john.brawn planned changes to this revision.Aug 14 2018, 10:11 AM

Note: not currently for review, posted in order to refer to it in an llvm-dev RFC.

john.brawn abandoned this revision.Mar 3 2020, 6:06 AM

Abandoning this old patch that I have no intention of doing any further work on.

Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 6:06 AM