Home
last modified time | relevance | path

Searched refs:ReplaceInstUsesWith (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp126 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
130 return ReplaceInstUsesWith(EI, Constant::getNullValue(EI.getType())); in visitExtractElementInst()
143 return ReplaceInstUsesWith(EI, op0); in visitExtractElementInst()
155 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
172 return ReplaceInstUsesWith(EI, Elt); in visitExtractElementInst()
203 return ReplaceInstUsesWith(EI, IE->getOperand(1)); in visitExtractElementInst()
221 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst()
398 ReplaceInstUsesWith(IE, VecOp); in visitInsertElementInst()
411 return ReplaceInstUsesWith(IE, VecOp); in visitInsertElementInst()
414 return ReplaceInstUsesWith(IE, UndefValue::get(IE.getType())); in visitInsertElementInst()
[all …]
DInstCombineCompares.cpp374 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(GEP->getContext())); in FoldCmpLoadFromIndexedGlobal()
394 return ReplaceInstUsesWith(ICI, ConstantInt::getTrue(GEP->getContext())); in FoldCmpLoadFromIndexedGlobal()
652 return ReplaceInstUsesWith(I, // No comparison is needed here. in FoldGEPICmp()
688 return ReplaceInstUsesWith(ICI, ConstantInt::get(ICI.getType(), isTrue)); in FoldICmpAddOpCst()
693 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(X->getContext())); in FoldICmpAddOpCst()
697 return ReplaceInstUsesWith(ICI, ConstantInt::getTrue(X->getContext())); in FoldICmpAddOpCst()
862 return ReplaceInstUsesWith(ICI, ConstantInt::getFalse(ICI.getContext())); in FoldICmpDivCst()
869 return ReplaceInstUsesWith(ICI, InsertRangeTest(X, LoBound, HiBound, in FoldICmpDivCst()
873 return ReplaceInstUsesWith(ICI, ConstantInt::getTrue(ICI.getContext())); in FoldICmpDivCst()
880 return ReplaceInstUsesWith(ICI, InsertRangeTest(X, LoBound, HiBound, in FoldICmpDivCst()
[all …]
DInstCombineSelect.cpp360 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp()
364 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp()
469 return ReplaceInstUsesWith(SI, Builder->CreateOr(AShr, C1)); in visitSelectInstWithICmp()
472 return ReplaceInstUsesWith(SI, Builder->CreateAdd(And, C1)); in visitSelectInstWithICmp()
484 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp()
487 return ReplaceInstUsesWith(SI, FalseVal); in visitSelectInstWithICmp()
491 return ReplaceInstUsesWith(SI, TrueVal); in visitSelectInstWithICmp()
494 return ReplaceInstUsesWith(SI, TrueVal); in visitSelectInstWithICmp()
563 return ReplaceInstUsesWith(Outer, Inner); in FoldSPFofSPF()
571 return ReplaceInstUsesWith(Outer, C); in FoldSPFofSPF()
[all …]
DInstCombineMulDivRem.cpp104 return ReplaceInstUsesWith(I, V); in visitMul()
107 return ReplaceInstUsesWith(I, V); in visitMul()
201 return ReplaceInstUsesWith(I, Op0BO); in visitMul()
265 return ReplaceInstUsesWith(I, Op0); // Eliminate 'fmul double %X, 1.0' in visitFMul()
272 return ReplaceInstUsesWith(I, Op0); in visitFMul()
391 return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType())); in commonIDivTransforms()
439 return ReplaceInstUsesWith(I, V); in visitUDiv()
507 return ReplaceInstUsesWith(I, V); in visitSDiv()
560 return ReplaceInstUsesWith(I, V); in visitFDiv()
617 return ReplaceInstUsesWith(I, V); in visitURem()
[all …]
DInstCombineCalls.cpp287 return ReplaceInstUsesWith(CI, RetVal); in visitCallInst()
316 return ReplaceInstUsesWith(CI, ConstantInt::get(ReturnTy, DontKnow)); in visitCallInst()
318 return ReplaceInstUsesWith(CI, ConstantInt::get(ReturnTy, Size-Offset)); in visitCallInst()
324 return ReplaceInstUsesWith(CI, Operand->getArgOperand(0)); in visitCallInst()
343 return ReplaceInstUsesWith(CI, ConstantFP::get(CI.getType(), 1.0)); in visitCallInst()
346 return ReplaceInstUsesWith(CI, II->getArgOperand(0)); in visitCallInst()
367 return ReplaceInstUsesWith(CI, ConstantInt::get(IT, in visitCallInst()
386 return ReplaceInstUsesWith(CI, ConstantInt::get(IT, in visitCallInst()
450 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); in visitCallInst()
471 return ReplaceInstUsesWith(CI, UndefValue::get(II->getType())); in visitCallInst()
[all …]
DInstCombineCasts.cpp145 ReplaceInstUsesWith(AI, NewCast); in PromoteCastOfAllocation()
147 return ReplaceInstUsesWith(CI, New); in PromoteCastOfAllocation()
454 return ReplaceInstUsesWith(CI, Res); in visitTrunc()
478 return ReplaceInstUsesWith(CI, Constant::getNullValue(CI.getType())); in visitTrunc()
529 return ReplaceInstUsesWith(CI, In); in transformZExtICmp()
562 return ReplaceInstUsesWith(CI, Res); in transformZExtICmp()
580 return ReplaceInstUsesWith(CI, In); in transformZExtICmp()
621 return ReplaceInstUsesWith(CI, Result); in transformZExtICmp()
787 return ReplaceInstUsesWith(CI, Res); in visitZExt()
908 return ReplaceInstUsesWith(CI, In); in transformSExtICmp()
[all …]
DInstCombineLoadStoreAlloca.cpp66 return ReplaceInstUsesWith(AI, GEP); in visitAllocaInst()
68 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst()
77 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst()
175 return ReplaceInstUsesWith(LI, AvailableVal); in visitLoadInst()
188 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst()
201 return ReplaceInstUsesWith(LI, UndefValue::get(LI.getType())); in visitLoadInst()
DInstCombineAddSub.cpp92 return ReplaceInstUsesWith(I, V); in visitAdd()
96 return ReplaceInstUsesWith(I, V); in visitAdd()
333 return ReplaceInstUsesWith(I, LHS); in visitFAdd()
354 return ReplaceInstUsesWith(I, LHS); in visitFAdd()
534 return ReplaceInstUsesWith(I, V); in visitSub()
538 return ReplaceInstUsesWith(I, V); in visitSub()
677 return ReplaceInstUsesWith(I, Res); in visitSub()
683 return ReplaceInstUsesWith(I, Res); in visitSub()
DInstCombineShifts.cpp323 return ReplaceInstUsesWith(I, in FoldShiftByConstant()
337 return ReplaceInstUsesWith(I, Constant::getNullValue(Op0->getType())); in FoldShiftByConstant()
548 return ReplaceInstUsesWith(I, Constant::getNullValue(I.getType())); in FoldShiftByConstant()
633 return ReplaceInstUsesWith(I, V); in visitShl()
670 return ReplaceInstUsesWith(I, V); in visitLShr()
710 return ReplaceInstUsesWith(I, V); in visitAShr()
727 return ReplaceInstUsesWith(I, X); in visitAShr()
758 return ReplaceInstUsesWith(I, Op0); in visitAShr()
DInstCombinePHI.cpp685 return ReplaceInstUsesWith(FirstPhi, UndefValue::get(FirstPhi.getType())); in SliceUpIllegalIntegerPHI()
781 ReplaceInstUsesWith(*PHIUsers[UserI].Inst, EltPHI); in SliceUpIllegalIntegerPHI()
788 ReplaceInstUsesWith(*PHIsToSlice[i], Undef); in SliceUpIllegalIntegerPHI()
789 return ReplaceInstUsesWith(FirstPhi, Undef); in SliceUpIllegalIntegerPHI()
796 return ReplaceInstUsesWith(PN, V); in visitPHINode()
819 return ReplaceInstUsesWith(PN, UndefValue::get(PN.getType())); in visitPHINode()
831 return ReplaceInstUsesWith(PN, UndefValue::get(PN.getType())); in visitPHINode()
865 return ReplaceInstUsesWith(PN, NonPhiInVal); in visitPHINode()
DInstructionCombining.cpp722 ReplaceInstUsesWith(*User, NewPN); in FoldOpIntoPhi()
725 return ReplaceInstUsesWith(I, NewPN); in FoldOpIntoPhi()
803 return ReplaceInstUsesWith(GEP, V); in visitGetElementPtrInst()
1063 ReplaceInstUsesWith(*BCI, I); in visitGetElementPtrInst()
1083 return ReplaceInstUsesWith(GEP, NGEP); in visitGetElementPtrInst()
1148 ReplaceInstUsesWith(*C, in visitMalloc()
1152 ReplaceInstUsesWith(*I, UndefValue::get(I->getType())); in visitMalloc()
1260 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst()
1264 return ReplaceInstUsesWith(EV, UndefValue::get(EV.getType())); in visitExtractValueInst()
1267 return ReplaceInstUsesWith(EV, Constant::getNullValue(EV.getType())); in visitExtractValueInst()
[all …]
DInstCombineAndOrXor.cpp280 return ReplaceInstUsesWith(TheAnd, Op); // No need for the and. in OptAndOp()
301 return ReplaceInstUsesWith(TheAnd, Op); in OptAndOp()
1038 return ReplaceInstUsesWith(I, V); in visitAnd()
1042 return ReplaceInstUsesWith(I, V); in visitAnd()
1216 return ReplaceInstUsesWith(I, Res); in visitAnd()
1222 return ReplaceInstUsesWith(I, Res); in visitAnd()
1758 return ReplaceInstUsesWith(I, V); in visitOr()
1762 return ReplaceInstUsesWith(I, V); in visitOr()
1850 return ReplaceInstUsesWith(I, A); in visitOr()
1852 return ReplaceInstUsesWith(I, A); in visitOr()
[all …]
DInstCombine.h254 Instruction *ReplaceInstUsesWith(Instruction &I, Value *V) { in ReplaceInstUsesWith() function
DInstCombineSimplifyDemanded.cpp61 ReplaceInstUsesWith(Inst, V); in SimplifyDemandedInstructionBits()