Lines Matching defs:LoopCond
201 bool UnswitchIfProfitable(Value *LoopCond, Constant *Val);
445 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(),
447 if (LoopCond && UnswitchIfProfitable(LoopCond,
454 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(),
457 if (LoopCond && NumCases) {
478 if (UnswitchIfProfitable(LoopCond, UnswitchVal)) {
489 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(),
491 if (LoopCond && UnswitchIfProfitable(LoopCond,
635 /// LoopCond == Val to simplify the loop. If we decide that this is profitable,
637 bool LoopUnswitch::UnswitchIfProfitable(Value *LoopCond, Constant *Val) {
642 if (IsTrivialUnswitchCondition(LoopCond, &CondVal, &ExitBlock)) {
645 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, ExitBlock);
657 UnswitchNontrivialCondition(LoopCond, Val, currentLoop);