Lines Matching refs:getCondition

216   CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition());  in isProfitableToFoldUnconditional()
629 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
632 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
652 CV = SI->getCondition(); in isValueEqualityComparison()
654 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
655 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
685 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
922 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1304 Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1598 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
1808 PHINode *PN = dyn_cast<PHINode>(BI->getCondition()); in FoldCondBranchOnPHI()
2119 Value *BrCond = BI->getCondition(); in SimplifyCondBranchToTwoReturns()
2193 Cond = dyn_cast<Instruction>(BI->getCondition()); in FoldBranchToCommonDest()
2316 Value *NewCond = PBI->getCondition(); in FoldBranchToCommonDest()
2323 Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not"); in FoldBranchToCommonDest()
2368 Builder.CreateBinOp(Opc, PBI->getCondition(), New, "or.cond")); in FoldBranchToCommonDest()
2432 Builder.CreateNot(PBI->getCondition(), "not.cond")); in FoldBranchToCommonDest()
2437 Instruction::Or, PBI->getCondition(), MergedCond, "or.cond")); in FoldBranchToCommonDest()
2443 Instruction::And, PBI->getCondition(), New, "and.cond")); in FoldBranchToCommonDest()
2446 Builder.CreateNot(PBI->getCondition(), "not.cond")); in FoldBranchToCommonDest()
2623 ->getCondition(); in mergeConditionalStoreToAddress()
2625 ->getCondition(); in mergeConditionalStoreToAddress()
2769 if (PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
2788 BI->getCondition()->getName() + ".pr", &BB->front()); in SimplifyCondBranchToCondBranch()
2795 PBI->isConditional() && PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
2802 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch()
2811 if (auto *CE = dyn_cast<ConstantExpr>(BI->getCondition())) in SimplifyCondBranchToCondBranch()
2910 Value *PBICond = PBI->getCondition(); in SimplifyCondBranchToCondBranch()
2915 Value *BICond = BI->getCondition(); in SimplifyCondBranchToCondBranch()
3080 Value *Condition = Select->getCondition(); in SimplifySwitchOnSelect()
3120 return SimplifyTerminatorOnSelect(IBI, SI->getCondition(), TrueBB, FalseBB, 0, in SimplifyIndirectBrOnSelect()
3163 if (SI->getCondition() != V) in TryToSimplifyUncondBranchWithICmpInIt()
3253 Instruction *Cond = dyn_cast<Instruction>(BI->getCondition()); in SimplifyBranchOnICmpChain()
3932 Value *Sub = SI->getCondition(); in TurnSwitchRangeIntoICmp()
3994 Value *Cond = SI->getCondition(); in EliminateDeadSwitchCases()
4138 Phi->setIncomingValue(Indexes[I], SI->getCondition()); in ForwardSwitchConditionToPHI()
4179 Constant *A = LookupConstant(Select->getCondition(), ConstantPool); in ConstantFold()
4220 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
4412 Value *const Cond = SI->getCondition(); in SwitchToSelect()
4761 Value *RangeCmp = RangeCheckBranch->getCondition(); in reuseTableCompare()
4912 Builder.CreateSub(SI->getCondition(), MinCaseVal, "switch.tableidx"); in SwitchToLookupTable()
5051 Value *Cond = SI->getCondition(); in SimplifySwitch()
5283 } else if (&*I == cast<Instruction>(BI->getCondition())) { in SimplifyCondBranch()
5307 PBI->getCondition(), BI->getCondition(), DL, CondIsFalse); in SimplifyCondBranch()
5310 auto *OldCond = BI->getCondition(); in SimplifyCondBranch()
5356 if (PHINode *PN = dyn_cast<PHINode>(BI->getCondition())) in SimplifyCondBranch()