HomePhabricator

[IndVars] Split loop predication out of optimizeLoopExits [NFC]

Authored by reames on Oct 17 2019, 10:29 AM.

Description

[IndVars] Split loop predication out of optimizeLoopExits [NFC]

In the process of writing D69009, I realized we have two distinct sets of invariants within this single function, and basically no shared logic. The optimize loop exit transforms (including the new one in D69009) only care about *analyzeable* exits. Loop predication, on the other hand, has to reason about *all* exits. At the moment, we have the property (due to the requirement for an exact btc) that all exits are analyzeable, but that will likely change in the future as we add widenable condition support.

llvm-svn: 375138

Details

Committed
reamesOct 17 2019, 10:29 AM
Parents
rGfc69ad09882c: [codeview] Workaround for PR43479, don't re-emit instr labels
Branches
Unknown
Tags
Unknown