HomePhabricator

[LoopPred] Generalize profitability check to handle unswitch output

Authored by reames on Tue, Nov 19, 2:06 PM.

Description

[LoopPred] Generalize profitability check to handle unswitch output

Unswitch (and other loop transforms) like to generate loop exit blocks with unconditional successors, and phi nodes (LCSSA, or simple multiple exiting blocks sharing an exit). Generalize the "likely very rare exit" check slightly to handle this form.

Details

Committed
reamesTue, Nov 19, 2:06 PM
Parents
rGcf823ce4ad9d: [AArch64] Fix MIR test instruction to not have invalid operand.
Branches
Unknown
Tags
Unknown