/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 516 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 520 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 625 return ReplaceInstUsesWith(SI, Builder->CreateOr(AShr, C1)); in visitSelectInstWithICmp() 628 return ReplaceInstUsesWith(SI, Builder->CreateAdd(And, C1)); in visitSelectInstWithICmp() 642 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 647 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp() 653 return ReplaceInstUsesWith(SI, TrueVal); in visitSelectInstWithICmp() 658 return ReplaceInstUsesWith(SI, TrueVal); in visitSelectInstWithICmp() 717 return ReplaceInstUsesWith(SI, V); in visitSelectInstWithICmp() 722 return ReplaceInstUsesWith(SI, V); in visitSelectInstWithICmp() [all …]
|
D | InstCombineCalls.cpp | 385 return ReplaceInstUsesWith(CI, ConstantInt::get(CI.getType(), Size)); in visitCallInst() 394 return ReplaceInstUsesWith(CI, X); in visitCallInst() 411 return ReplaceInstUsesWith(CI, ConstantFP::get(CI.getType(), 1.0)); in visitCallInst() 414 return ReplaceInstUsesWith(CI, II->getArgOperand(0)); in visitCallInst() 434 return ReplaceInstUsesWith(CI, ConstantInt::get(IT, in visitCallInst() 452 return ReplaceInstUsesWith(CI, ConstantInt::get(IT, in visitCallInst() 494 return ReplaceInstUsesWith(CI, Arg0); in visitCallInst() 508 return ReplaceInstUsesWith(CI, Arg0); in visitCallInst() 515 return ReplaceInstUsesWith(CI, Arg1); in visitCallInst() 519 return ReplaceInstUsesWith(CI, Arg0); in visitCallInst() [all …]
|
D | InstCombineVectorOps.cpp | 177 return ReplaceInstUsesWith(EI, scalarPHI); in scalarizePHI() 185 return ReplaceInstUsesWith(EI, C->getAggregateElement(0U)); in visitExtractElementInst() 196 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 213 return ReplaceInstUsesWith(EI, Elt); in visitExtractElementInst() 251 return ReplaceInstUsesWith(EI, IE->getOperand(1)); in visitExtractElementInst() 269 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() 525 return ReplaceInstUsesWith(I, I.getOperand(0)); in visitInsertValueInst() 536 ReplaceInstUsesWith(IE, VecOp); in visitInsertElementInst() 550 return ReplaceInstUsesWith(IE, VecOp); in visitInsertElementInst() 553 return ReplaceInstUsesWith(IE, UndefValue::get(IE.getType())); in visitInsertElementInst() [all …]
|
D | InstCombineCompares.cpp | 407 return ReplaceInstUsesWith(ICI, Builder->getFalse()); in FoldCmpLoadFromIndexedGlobal() 427 return ReplaceInstUsesWith(ICI, Builder->getTrue()); in FoldCmpLoadFromIndexedGlobal() 680 return ReplaceInstUsesWith(I, Cmp); in FoldGEPICmp() 716 return ReplaceInstUsesWith(I, // No comparison is needed here. in FoldGEPICmp() 907 return ReplaceInstUsesWith(ICI, Builder->getFalse()); in FoldICmpDivCst() 914 return ReplaceInstUsesWith(ICI, InsertRangeTest(X, LoBound, HiBound, in FoldICmpDivCst() 918 return ReplaceInstUsesWith(ICI, Builder->getTrue()); in FoldICmpDivCst() 925 return ReplaceInstUsesWith(ICI, InsertRangeTest(X, LoBound, HiBound, in FoldICmpDivCst() 930 return ReplaceInstUsesWith(ICI, Builder->getTrue()); in FoldICmpDivCst() 932 return ReplaceInstUsesWith(ICI, Builder->getFalse()); in FoldICmpDivCst() [all …]
|
D | InstCombineMulDivRem.cpp | 173 return ReplaceInstUsesWith(I, V); in visitMul() 176 return ReplaceInstUsesWith(I, V); in visitMul() 179 return ReplaceInstUsesWith(I, V); in visitMul() 315 return ReplaceInstUsesWith(I, Op0BO); in visitMul() 528 return ReplaceInstUsesWith(I, V); in visitFMul() 535 return ReplaceInstUsesWith(I, V); in visitFMul() 566 return ReplaceInstUsesWith(I, V); in visitFMul() 608 return ReplaceInstUsesWith(I, II->getOperand(0)); in visitFMul() 633 return ReplaceInstUsesWith(I, FSub); in visitFMul() 653 return ReplaceInstUsesWith(I, FMul); in visitFMul() [all …]
|
D | InstCombineAddSub.cpp | 1055 return ReplaceInstUsesWith(I, V); in visitAdd() 1059 return ReplaceInstUsesWith(I, V); in visitAdd() 1063 return ReplaceInstUsesWith(I, V); in visitAdd() 1160 return ReplaceInstUsesWith(I, V); in visitAdd() 1332 return ReplaceInstUsesWith(I, V); in visitFAdd() 1336 return ReplaceInstUsesWith(I, V); in visitFAdd() 1430 return ReplaceInstUsesWith(I, V); in visitFAdd() 1509 return ReplaceInstUsesWith(I, V); in visitSub() 1513 return ReplaceInstUsesWith(I, V); in visitSub() 1517 return ReplaceInstUsesWith(I, V); in visitSub() [all …]
|
D | InstCombinePHI.cpp | 681 return ReplaceInstUsesWith(FirstPhi, UndefValue::get(FirstPhi.getType())); in SliceUpIllegalIntegerPHI() 777 ReplaceInstUsesWith(*PHIUsers[UserI].Inst, EltPHI); in SliceUpIllegalIntegerPHI() 784 ReplaceInstUsesWith(*PHIsToSlice[i], Undef); in SliceUpIllegalIntegerPHI() 785 return ReplaceInstUsesWith(FirstPhi, Undef); in SliceUpIllegalIntegerPHI() 792 return ReplaceInstUsesWith(PN, V); in visitPHINode() 815 return ReplaceInstUsesWith(PN, UndefValue::get(PN.getType())); in visitPHINode() 827 return ReplaceInstUsesWith(PN, UndefValue::get(PN.getType())); in visitPHINode() 861 return ReplaceInstUsesWith(PN, NonPhiInVal); in visitPHINode()
|
D | InstCombineCasts.cpp | 152 ReplaceInstUsesWith(AI, NewCast); in PromoteCastOfAllocation() 154 return ReplaceInstUsesWith(CI, New); in PromoteCastOfAllocation() 459 return ReplaceInstUsesWith(CI, Res); in visitTrunc() 483 return ReplaceInstUsesWith(CI, Constant::getNullValue(CI.getType())); in visitTrunc() 534 return ReplaceInstUsesWith(CI, In); in transformZExtICmp() 564 return ReplaceInstUsesWith(CI, Res); in transformZExtICmp() 582 return ReplaceInstUsesWith(CI, In); in transformZExtICmp() 622 return ReplaceInstUsesWith(CI, Result); in transformZExtICmp() 800 return ReplaceInstUsesWith(CI, Res); in visitZExt() 915 return ReplaceInstUsesWith(CI, In); in transformSExtICmp() [all …]
|
D | InstCombineShifts.cpp | 343 return ReplaceInstUsesWith( in FoldShiftByConstant() 576 return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType())); in FoldShiftByConstant() 697 return ReplaceInstUsesWith(I, V); in visitShl() 702 return ReplaceInstUsesWith(I, V); in visitShl() 739 return ReplaceInstUsesWith(I, V); in visitLShr() 743 return ReplaceInstUsesWith(I, V); in visitLShr() 783 return ReplaceInstUsesWith(I, V); in visitAShr() 787 return ReplaceInstUsesWith(I, V); in visitAShr()
|
D | InstCombineAndOrXor.cpp | 245 return ReplaceInstUsesWith(TheAnd, Op); // No need for the and. in OptAndOp() 265 return ReplaceInstUsesWith(TheAnd, Op); in OptAndOp() 1210 return ReplaceInstUsesWith(I, V); in visitAnd() 1213 return ReplaceInstUsesWith(I, V); in visitAnd() 1217 return ReplaceInstUsesWith(I, V); in visitAnd() 1225 return ReplaceInstUsesWith(I, V); in visitAnd() 1418 return ReplaceInstUsesWith(I, Res); in visitAnd() 1426 return ReplaceInstUsesWith(I, Builder->CreateAnd(Res, Y)); in visitAnd() 1429 return ReplaceInstUsesWith(I, Builder->CreateAnd(Res, X)); in visitAnd() 1434 return ReplaceInstUsesWith(I, Builder->CreateAnd(Res, Y)); in visitAnd() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 205 return IC.ReplaceInstUsesWith(AI, GEP); in simplifyAllocaArraySize() 209 return IC.ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 271 return ReplaceInstUsesWith(AI, EntryAI); in visitAllocaInst() 295 Instruction *NewI = ReplaceInstUsesWith(AI, Cast); in visitAllocaInst() 709 return ReplaceInstUsesWith( in visitLoadInst() 724 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst() 737 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst()
|
D | InstructionCombining.cpp | 862 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi() 865 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi() 1291 return ReplaceInstUsesWith(GEP, V); in visitGetElementPtrInst() 1760 ReplaceInstUsesWith(*BCI, I); in visitGetElementPtrInst() 1782 return ReplaceInstUsesWith(GEP, NGEP); in visitGetElementPtrInst() 1883 ReplaceInstUsesWith(*C, in visitAllocSite() 1887 ReplaceInstUsesWith(*I, UndefValue::get(I->getType())); in visitAllocSite() 1892 ReplaceInstUsesWith(*I, ConstantInt::get(I->getType(), DontKnow)); in visitAllocSite() 2141 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst() 2146 return ReplaceInstUsesWith(EV, C2); in visitExtractValueInst() [all …]
|
D | InstCombineInternal.h | 420 Instruction *ReplaceInstUsesWith(Instruction &I, Value *V) { in ReplaceInstUsesWith() function
|
D | InstCombineSimplifyDemanded.cpp | 76 ReplaceInstUsesWith(Inst, V); in SimplifyDemandedInstructionBits()
|