• Home
  • Raw
  • Download

Lines Matching refs:getCondition

385   if (L.isLoopInvariant(BI.getCondition())) {  in unswitchTrivialBranch()
386 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
389 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch()
419 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or) in unswitchTrivialBranch()
422 if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And) in unswitchTrivialBranch()
500 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
504 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchTrivialBranch()
600 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch()
929 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions()
959 if (!BI->isConditional() || isa<Constant>(BI->getCondition())) in unswitchAllTrivialConditions()
1148 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks()
1150 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks()
1973 bool FullUnswitch = SI || BI->getCondition() == Invariants[0]; in unswitchNontrivialInvariants()
1978 assert(isa<Instruction>(BI->getCondition()) && in unswitchNontrivialInvariants()
1993 if (cast<Instruction>(BI->getCondition())->getOpcode() != Instruction::Or) { in unswitchNontrivialInvariants()
1994 assert(cast<Instruction>(BI->getCondition())->getOpcode() == in unswitchNontrivialInvariants()
2634 if (!isa<Constant>(SI->getCondition()) && in unswitchBestCondition()
2635 L.isLoopInvariant(SI->getCondition()) && !BB->getUniqueSuccessor()) in unswitchBestCondition()
2636 UnswitchCandidates.push_back({SI, {SI->getCondition()}}); in unswitchBestCondition()
2641 if (!BI || !BI->isConditional() || isa<Constant>(BI->getCondition()) || in unswitchBestCondition()
2645 if (L.isLoopInvariant(BI->getCondition())) { in unswitchBestCondition()
2646 UnswitchCandidates.push_back({BI, {BI->getCondition()}}); in unswitchBestCondition()
2650 Instruction &CondI = *cast<Instruction>(BI->getCondition()); in unswitchBestCondition()
2768 if (cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchBestCondition()
2773 assert(cast<Instruction>(BI.getCondition())->getOpcode() == in unswitchBestCondition()
2815 Invariants[0] == BI->getCondition())); in unswitchBestCondition()