Lines Matching refs:Cond
262 void unswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
435 static Value *findLIVLoopCondition(Value *Cond, Loop *L, bool &Changed, in findLIVLoopCondition() argument
439 auto CacheIt = Cache.find(Cond); in findLIVLoopCondition()
447 if (Cond->getType()->isVectorTy()) in findLIVLoopCondition()
451 if (isa<Constant>(Cond)) return nullptr; in findLIVLoopCondition()
456 if (L->makeLoopInvariant(Cond, Changed, nullptr, MSSAU)) { in findLIVLoopCondition()
457 Cache[Cond] = Cond; in findLIVLoopCondition()
458 return Cond; in findLIVLoopCondition()
462 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond)) in findLIVLoopCondition()
497 Cache[Cond] = LHS; in findLIVLoopCondition()
505 Cache[Cond] = RHS; in findLIVLoopCondition()
511 Cache[Cond] = nullptr; in findLIVLoopCondition()
519 findLIVLoopCondition(Value *Cond, Loop *L, bool &Changed, in findLIVLoopCondition() argument
523 Value *FCond = findLIVLoopCondition(Cond, L, Changed, OpChain, Cache, MSSAU); in findLIVLoopCondition()
586 Value *Cond = BInst->getCondition(); in isUnreachableDueToPreviousUnswitching() local
587 if (!isa<ConstantInt>(Cond)) in isUnreachableDueToPreviousUnswitching()
591 Cond == ConstantInt::getTrue(Cond->getContext()) in isUnreachableDueToPreviousUnswitching()
1095 void LoopUnswitch::unswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, in unswitchTrivialCondition() argument
1102 << " on cond: " << *Val << " == " << *Cond << "\n"); in unswitchTrivialCondition()
1129 emitPreheaderBranchOnCondition(Cond, Val, NewExit, NewPH, OldBranch, TI); in unswitchTrivialCondition()
1141 rewriteLoopBodyWithConditionConstant(L, Cond, Val, /*IsEqual=*/false); in unswitchTrivialCondition()
1202 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); in tryTrivialLoopUnswitch() local
1203 if (!Cond) in tryTrivialLoopUnswitch()
1206 CurrentBB = SI->findCaseValue(Cond)->getCaseSuccessor(); in tryTrivialLoopUnswitch()