Lines Matching refs:getCondition
520 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch()
641 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalOr()) && in unswitchTrivialBranch()
645 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalAnd()) && in unswitchTrivialBranch()
742 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
1076 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
1107 isa<Constant>(skipTrivialSelect(BI->getCondition()))) in unswitchAllTrivialConditions()
1303 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1305 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
2182 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2188 assert(isa<Instruction>(skipTrivialSelect(BI->getCondition())) && in unswitchNontrivialInvariants()
2203 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2348 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2369 SI->getCondition(), SI->getCondition()->getName() + ".fr", SI)); in unswitchNontrivialInvariants()
2699 SplitBlockAndInsertIfThen(SI->getCondition(), SI, false, in turnSelectIntoBranch()
2915 auto *Cond = SI->getCondition(); in collectUnswitchCandidates()
2931 if (!isa<Constant>(SI->getCondition()) && in collectUnswitchCandidates()
2932 L.isLoopInvariant(SI->getCondition()) && !BB->getUniqueSuccessor()) in collectUnswitchCandidates()
2933 UnswitchCandidates.push_back({SI, {SI->getCondition()}}); in collectUnswitchCandidates()
2942 AddUnswitchCandidatesForInst(BI, BI->getCondition()); in collectUnswitchCandidates()
3104 Builder.CreateCondBr(TI->getCondition(), TI->getSuccessor(0), in injectPendingInvariantConditions()
3370 Value *Cond = skipTrivialSelect(BI.getCondition()); in findBestNonTrivialUnswitchCandidate()
3417 Invariants[0] == skipTrivialSelect(BI->getCondition())); in findBestNonTrivialUnswitchCandidate()
3464 Cond = skipTrivialSelect(BI->getCondition()); in shouldInsertFreeze()
3466 Cond = skipTrivialSelect(cast<SwitchInst>(&TI)->getCondition()); in shouldInsertFreeze()
3525 SI->getCondition(), &AC, L.getLoopPreheader()->getTerminator(), &DT); in unswitchBestCondition()