@@ -175,11 +175,6 @@ static bool hoistArithmetics(Instruction &I, Loop &L,
175
175
ICFLoopSafetyInfo &SafetyInfo,
176
176
MemorySSAUpdater &MSSAU, AssumptionCache *AC,
177
177
DominatorTree *DT);
178
- // / Try to simplify things like (A < INV_1 AND icmp A < INV_2) into (A <
179
- // / min(INV_1, INV_2)), if INV_1 and INV_2 are both loop invariants and their
180
- // / minimun can be computed outside of loop, and X is not a loop-invariant.
181
- static bool hoistMinMax (Instruction &I, Loop &L, ICFLoopSafetyInfo &SafetyInfo,
182
- MemorySSAUpdater &MSSAU);
183
178
static Instruction *cloneInstructionInExitBlock (
184
179
Instruction &I, BasicBlock &ExitBlock, PHINode &PN, const LoopInfo *LI,
185
180
const LoopSafetyInfo *SafetyInfo, MemorySSAUpdater &MSSAU);
@@ -2418,6 +2413,9 @@ bool pointerInvalidatedByBlock(BasicBlock &BB, MemorySSA &MSSA, MemoryUse &MU) {
2418
2413
return false ;
2419
2414
}
2420
2415
2416
+ // / Try to simplify things like (A < INV_1 AND icmp A < INV_2) into (A <
2417
+ // / min(INV_1, INV_2)), if INV_1 and INV_2 are both loop invariants and their
2418
+ // / minimun can be computed outside of loop, and X is not a loop-invariant.
2421
2419
static bool hoistMinMax (Instruction &I, Loop &L, ICFLoopSafetyInfo &SafetyInfo,
2422
2420
MemorySSAUpdater &MSSAU) {
2423
2421
bool Inverse = false ;
0 commit comments