Lines Matching refs:LIC
245 void UnswitchNontrivialCondition(Value *LIC, Constant *OnVal, Loop *L,
248 void RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC,
251 void EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val,
783 void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val, in EmitPreheaderBranchOnCondition() argument
790 Value *BranchVal = LIC; in EmitPreheaderBranchOnCondition()
793 Val->getType() != Type::getInt1Ty(LIC->getContext())) in EmitPreheaderBranchOnCondition()
794 BranchVal = new ICmpInst(InsertPt, ICmpInst::ICMP_EQ, LIC, Val); in EmitPreheaderBranchOnCondition()
1026 void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val, in UnswitchNontrivialCondition() argument
1032 << " when '" << *Val << "' == " << *LIC << "\n"); in UnswitchNontrivialCondition()
1145 EmitPreheaderBranchOnCondition(LIC, Val, NewBlocks[0], LoopBlocks[0], OldBR, in UnswitchNontrivialCondition()
1157 WeakVH LICHandle(LIC); in UnswitchNontrivialCondition()
1161 RewriteLoopBodyWithConditionConstant(L, LIC, Val, false); in UnswitchNontrivialCondition()
1204 void LoopUnswitch::RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC, in RewriteLoopBodyWithConditionConstant() argument
1207 assert(!isa<Constant>(LIC) && "Why are we unswitching on a constant?"); in RewriteLoopBodyWithConditionConstant()
1232 for (User *U : LIC->users()) { in RewriteLoopBodyWithConditionConstant()
1240 UI->replaceUsesOfWith(LIC, Replacement); in RewriteLoopBodyWithConditionConstant()
1249 for (User *U : LIC->users()) { in RewriteLoopBodyWithConditionConstant()