Page MenuHomePhabricator

[InstCombine] Delay Phi operand folding in the pass manager
Changes PlannedPublic

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



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.