Lines Matching refs:getCondition

366   if (L.isLoopInvariant(BI.getCondition())) {  in unswitchTrivialBranch()
367 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
370 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch()
400 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or) in unswitchTrivialBranch()
403 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And) in unswitchTrivialBranch()
480 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
484 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
577 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
861 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
891 if (!BI->isConditional() || isa<Constant>(BI->getCondition())) in unswitchAllTrivialConditions()
1888 bool FullUnswitch = SI || BI->getCondition() == Invariants[0]; in unswitchNontrivialInvariants()
1893 assert(isa<Instruction>(BI->getCondition()) && in unswitchNontrivialInvariants()
1908 if (cast<Instruction>(BI->getCondition())->getOpcode() != Instruction::Or) { in unswitchNontrivialInvariants()
1909 assert(cast<Instruction>(BI->getCondition())->getOpcode() == in unswitchNontrivialInvariants()
2528 if (!isa<Constant>(SI->getCondition()) && in unswitchBestCondition()
2529 L.isLoopInvariant(SI->getCondition())) in unswitchBestCondition()
2530 UnswitchCandidates.push_back({SI, {SI->getCondition()}}); in unswitchBestCondition()
2535 if (!BI || !BI->isConditional() || isa<Constant>(BI->getCondition()) || in unswitchBestCondition()
2539 if (L.isLoopInvariant(BI->getCondition())) { in unswitchBestCondition()
2540 UnswitchCandidates.push_back({BI, {BI->getCondition()}}); in unswitchBestCondition()
2544 Instruction &CondI = *cast<Instruction>(BI->getCondition()); in unswitchBestCondition()
2658 if (cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchBestCondition()
2663 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchBestCondition()
2705 Invariants[0] == BI->getCondition())); in unswitchBestCondition()