Lines Matching refs:getCondition
522 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch()
644 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalOr()) && in unswitchTrivialBranch()
648 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalAnd()) && in unswitchTrivialBranch()
747 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
1085 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
1116 isa<Constant>(skipTrivialSelect(BI->getCondition()))) in unswitchAllTrivialConditions()
1316 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1318 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
2196 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2202 assert(isa<Instruction>(skipTrivialSelect(BI->getCondition())) && in unswitchNontrivialInvariants()
2217 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2363 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2386 SI->setCondition(new FreezeInst(SI->getCondition(), in unswitchNontrivialInvariants()
2387 SI->getCondition()->getName() + ".fr", in unswitchNontrivialInvariants()
2719 SplitBlockAndInsertIfThen(SI->getCondition(), SI, false, in turnSelectIntoBranch()
2937 auto *Cond = SI->getCondition(); in collectUnswitchCandidates()
2953 if (!isa<Constant>(SI->getCondition()) && in collectUnswitchCandidates()
2954 L.isLoopInvariant(SI->getCondition()) && !BB->getUniqueSuccessor()) in collectUnswitchCandidates()
2955 UnswitchCandidates.push_back({SI, {SI->getCondition()}}); in collectUnswitchCandidates()
2964 AddUnswitchCandidatesForInst(BI, BI->getCondition()); in collectUnswitchCandidates()
3126 Builder.CreateCondBr(TI->getCondition(), TI->getSuccessor(0), in injectPendingInvariantConditions()
3392 Value *Cond = skipTrivialSelect(BI.getCondition()); in findBestNonTrivialUnswitchCandidate()
3439 Invariants[0] == skipTrivialSelect(BI->getCondition())); in findBestNonTrivialUnswitchCandidate()
3486 Cond = skipTrivialSelect(BI->getCondition()); in shouldInsertFreeze()
3488 Cond = skipTrivialSelect(cast<SwitchInst>(&TI)->getCondition()); in shouldInsertFreeze()
3547 SI->getCondition(), &AC, L.getLoopPreheader()->getTerminator(), &DT); in unswitchBestCondition()