This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Delay Phi operand folding in the pass manager
AbandonedPublic

Authored by labrinea on Sep 26 2018, 11:49 AM.

Details

Reviewers
llvm-commits
Summary

Folding Phi operands too early in the pass pipeline can prevent other optimization passes, like GVN-Hoist, from being beneficial. This patch makes InstCombine capable of turning on/off the folding of Phi operands. Then uses that capability to delay Phi operand folding from the pass manager.

Diff Detail

Event Timeline

labrinea created this revision.Sep 26 2018, 11:49 AM
labrinea planned changes to this revision.Sep 26 2018, 11:50 AM

Not ready for review. Using this as reference to and RFC in llvm-dev.

labrinea abandoned this revision.May 24 2023, 4:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 4:53 AM
Herald added subscribers: hoy, ormris. · View Herald Transcript