Lines Matching refs:LoopCond

248     bool UnswitchIfProfitable(Value *LoopCond, Constant *Val,
593 static bool EqualityPropUnSafe(Value &LoopCond) { in EqualityPropUnSafe() argument
594 ICmpInst *CI = dyn_cast<ICmpInst>(&LoopCond); in EqualityPropUnSafe()
698 Value *LoopCond = in processCurrentLoop() local
700 if (LoopCond && in processCurrentLoop()
701 UnswitchIfProfitable(LoopCond, ConstantInt::getTrue(Context))) { in processCurrentLoop()
739 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in processCurrentLoop() local
741 if (LoopCond && !EqualityPropUnSafe(*LoopCond) && in processCurrentLoop()
742 UnswitchIfProfitable(LoopCond, ConstantInt::getTrue(Context), TI)) { in processCurrentLoop()
749 Value *LoopCond; in processCurrentLoop() local
751 std::tie(LoopCond, OpChain) = in processCurrentLoop()
755 if (LoopCond && NumCases) { in processCurrentLoop()
796 if (UnswitchIfProfitable(LoopCond, UnswitchVal)) { in processCurrentLoop()
812 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in processCurrentLoop() local
814 if (LoopCond && UnswitchIfProfitable(LoopCond, in processCurrentLoop()
877 bool LoopUnswitch::UnswitchIfProfitable(Value *LoopCond, Constant *Val, in UnswitchIfProfitable() argument
884 << "' == " << *LoopCond << "\n" in UnswitchIfProfitable()
889 getAnalysis<LegacyDivergenceAnalysis>().isDivergent(LoopCond)) { in UnswitchIfProfitable()
893 << "' == " << *LoopCond << "\n" in UnswitchIfProfitable()
898 UnswitchNontrivialCondition(LoopCond, Val, currentLoop, TI); in UnswitchIfProfitable()
1127 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), in TryTrivialLoopUnswitch() local
1132 if (!LoopCond || LoopCond != BI->getCondition()) in TryTrivialLoopUnswitch()
1152 if (EqualityPropUnSafe(*LoopCond)) in TryTrivialLoopUnswitch()
1155 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()
1161 Value *LoopCond = FindLIVLoopCondition(SI->getCondition(), in TryTrivialLoopUnswitch() local
1166 if (!LoopCond || LoopCond != SI->getCondition()) in TryTrivialLoopUnswitch()
1197 UnswitchTrivialCondition(currentLoop, LoopCond, CondVal, LoopExitBB, in TryTrivialLoopUnswitch()