Lines Matching refs:getCondition

528   Value *Cond = skipTrivialSelect(BI.getCondition());  in unswitchTrivialBranch()
650 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalOr()) && in unswitchTrivialBranch()
654 assert(match(skipTrivialSelect(BI.getCondition()), m_LogicalAnd()) && in unswitchTrivialBranch()
753 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
1090 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
1121 isa<Constant>(skipTrivialSelect(BI->getCondition()))) in unswitchAllTrivialConditions()
1321 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1323 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
2201 SI || (skipTrivialSelect(BI->getCondition()) == Invariants[0] && in unswitchNontrivialInvariants()
2207 assert(isa<Instruction>(skipTrivialSelect(BI->getCondition())) && in unswitchNontrivialInvariants()
2222 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2368 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants()
2392 SI->setCondition(new FreezeInst(SI->getCondition(), in unswitchNontrivialInvariants()
2393 SI->getCondition()->getName() + ".fr", in unswitchNontrivialInvariants()
2725 SplitBlockAndInsertIfThen(SI->getCondition(), SI, false, in turnSelectIntoBranch()
2942 auto *Cond = SI->getCondition(); in collectUnswitchCandidates()
2958 if (!isa<Constant>(SI->getCondition()) && in collectUnswitchCandidates()
2959 L.isLoopInvariant(SI->getCondition()) && !BB->getUniqueSuccessor()) in collectUnswitchCandidates()
2960 UnswitchCandidates.push_back({SI, {SI->getCondition()}}); in collectUnswitchCandidates()
2969 AddUnswitchCandidatesForInst(BI, BI->getCondition()); in collectUnswitchCandidates()
3133 Builder.CreateCondBr(TI->getCondition(), TI->getSuccessor(0), in injectPendingInvariantConditions()
3399 Value *Cond = skipTrivialSelect(BI.getCondition()); in findBestNonTrivialUnswitchCandidate()
3446 Invariants[0] == skipTrivialSelect(BI->getCondition())); in findBestNonTrivialUnswitchCandidate()
3493 Cond = skipTrivialSelect(BI->getCondition()); in shouldInsertFreeze()
3495 Cond = skipTrivialSelect(cast<SwitchInst>(&TI)->getCondition()); in shouldInsertFreeze()
3554 SI->getCondition(), &AC, L.getLoopPreheader()->getTerminator(), &DT); in unswitchBestCondition()