Lines Matching refs:getCondition
184 CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition()); in isProfitableToFoldUnconditional()
510 Cond = dyn_cast<Instruction>(SI->getCondition()); in EraseTerminatorInstAndDCECond()
513 Cond = dyn_cast<Instruction>(BI->getCondition()); in EraseTerminatorInstAndDCECond()
531 CV = SI->getCondition(); in isValueEqualityComparison()
533 if (BI->isConditional() && BI->getCondition()->hasOneUse()) in isValueEqualityComparison()
534 if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) { in isValueEqualityComparison()
565 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetValueEqualityComparisonCases()
804 ICmpInst *ICI = cast<ICmpInst>(BI->getCondition()); in GetBranchWeights()
1182 (Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1471 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB()
1690 PHINode *PN = dyn_cast<PHINode>(BI->getCondition()); in FoldCondBranchOnPHI()
1985 Value *BrCond = BI->getCondition(); in SimplifyCondBranchToTwoReturns()
2057 Cond = dyn_cast<Instruction>(BI->getCondition()); in FoldBranchToCommonDest()
2178 Value *NewCond = PBI->getCondition(); in FoldBranchToCommonDest()
2185 PBI->getCondition()->getName()+".not"); in FoldBranchToCommonDest()
2230 cast<Instruction>(Builder.CreateBinOp(Opc, PBI->getCondition(), in FoldBranchToCommonDest()
2293 cast<Instruction>(Builder.CreateNot(PBI->getCondition(), in FoldBranchToCommonDest()
2302 PBI->getCondition(), MergedCond, in FoldBranchToCommonDest()
2310 PBI->getCondition(), New, in FoldBranchToCommonDest()
2314 cast<Instruction>(Builder.CreateNot(PBI->getCondition(), in FoldBranchToCommonDest()
2356 if (PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
2375 BI->getCondition()->getName() + ".pr", in SimplifyCondBranchToCondBranch()
2384 PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch()
2390 NewPN->addIncoming(BI->getCondition(), P); in SimplifyCondBranchToCondBranch()
2410 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(BI->getCondition())) in SimplifyCondBranchToCondBranch()
2489 Value *PBICond = PBI->getCondition(); in SimplifyCondBranchToCondBranch()
2494 Value *BICond = BI->getCondition(); in SimplifyCondBranchToCondBranch()
2639 Value *Condition = Select->getCondition(); in SimplifySwitchOnSelect()
2679 return SimplifyTerminatorOnSelect(IBI, SI->getCondition(), TrueBB, FalseBB, in SimplifyIndirectBrOnSelect()
2720 if (SI->getCondition() != V) in TryToSimplifyUncondBranchWithICmpInIt()
2810 Instruction *Cond = dyn_cast<Instruction>(BI->getCondition()); in SimplifyBranchOnICmpChain()
3187 Value *Sub = SI->getCondition(); in TurnSwitchRangeIntoICmp()
3246 Value *Cond = SI->getCondition(); in EliminateDeadSwitchCases()
3357 Phi->setIncomingValue(Indexes[I], SI->getCondition()); in ForwardSwitchConditionToPHI()
3399 Constant *A = LookupConstant(Select->getCondition(), ConstantPool); in ConstantFold()
3440 ConstantPool.insert(std::make_pair(SI->getCondition(), CaseVal)); in GetCaseResults()
3635 Value *const Cond = SI->getCondition(); in SwitchToSelect()
3990 Value *RangeCmp = RangeCheckBranch->getCondition(); in reuseTableCompare()
4141 Value *TableIndex = Builder.CreateSub(SI->getCondition(), MinCaseVal, in SwitchToLookupTable()
4279 Value *Cond = SI->getCondition(); in SimplifySwitch()
4492 } else if (&*I == cast<Instruction>(BI->getCondition())){ in SimplifyCondBranch()
4541 if (PHINode *PN = dyn_cast<PHINode>(BI->getCondition())) in SimplifyCondBranch()