Home
last modified time | relevance | path

Searched refs:replaceOperand (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp148 return replaceOperand(RMWI, 1, ConstantInt::get(RMWI.getType(), 0)); in visitAtomicRMWInst()
152 return replaceOperand(RMWI, 1, ConstantFP::getNegativeZero(RMWI.getType())); in visitAtomicRMWInst()
H A DInstCombineSelect.cpp1507 IC.replaceOperand(Sel, 0, NewCmp); in tryToReuseConstantFromSelectInComparison()
1620 replaceOperand(SI, 0, IsNeg); in foldSelectInstWithICmp()
2068 return IC.replaceOperand( in canonicalizeScalarSelectOfVecs()
2705 return replaceOperand(SI, 1, One); in visitSelectInst()
2736 return replaceOperand(SI, 0, A); in visitSelectInst()
2740 return replaceOperand(SI, 0, A); in visitSelectInst()
2759 return replaceOperand(SI, 1, S); in visitSelectInst()
2762 return replaceOperand(SI, 2, S); in visitSelectInst()
3035 replaceOperand(SI, 0, And); in visitSelectInst()
3052 replaceOperand(SI, 0, Or); in visitSelectInst()
[all …]
H A DInstCombineCalls.cpp371 return replaceOperand(II, 0, V); in simplifyMaskedStore()
455 return replaceOperand(II, 0, V); in simplifyMaskedScatter()
458 return replaceOperand(II, 1, V); in simplifyMaskedScatter()
620 return IC.replaceOperand(II, 0, X); in foldCtpop()
626 return IC.replaceOperand(II, 0, X); in foldCtpop()
1861 replaceOperand(*II, 0, X); in visitCallInst()
1862 replaceOperand(*II, 1, Y); in visitCallInst()
1869 replaceOperand(*II, 0, X); in visitCallInst()
1870 replaceOperand(*II, 1, X); in visitCallInst()
2038 replaceOperand(*II, 0, Data); in visitCallInst()
[all …]
H A DInstructionCombining.cpp431 replaceOperand(I, 0, A); in SimplifyAssociativeOrCommutative()
432 replaceOperand(I, 1, V); in SimplifyAssociativeOrCommutative()
464 replaceOperand(I, 0, V); in SimplifyAssociativeOrCommutative()
465 replaceOperand(I, 1, C); in SimplifyAssociativeOrCommutative()
492 replaceOperand(I, 0, V); in SimplifyAssociativeOrCommutative()
493 replaceOperand(I, 1, B); in SimplifyAssociativeOrCommutative()
512 replaceOperand(I, 0, B); in SimplifyAssociativeOrCommutative()
513 replaceOperand(I, 1, V); in SimplifyAssociativeOrCommutative()
548 replaceOperand(I, 1, CRes); in SimplifyAssociativeOrCommutative()
3101 return replaceOperand(RI, 0, in visitReturnInst()
[all …]
H A DInstCombineMulDivRem.cpp71 IC.replaceOperand(*I, 0, V2); in simplifyValueKnownNonZero()
696 replaceOperand(I, 1, SI->getOperand(NonNullOperand)); in simplifyDivRemOfSelectWithZeroOp()
790 return replaceOperand(I, 1, V); in commonIDivTransforms()
916 replaceOperand(I, 0, ConstantInt::get(Ty, 1)); in commonIDivTransforms()
917 replaceOperand(I, 1, Y); in commonIDivTransforms()
1420 replaceOperand(I, 0, ConstantFP::get(I.getType(), 1.0)); in visitFDiv()
1421 replaceOperand(I, 1, Y); in visitFDiv()
1453 return replaceOperand(I, 1, V); in commonIRemTransforms()
1566 return replaceOperand(I, 1, ConstantInt::get(I.getType(), -*Y)); in visitSRem()
1614 return replaceOperand(I, 1, NewRHSV); in visitSRem()
H A DInstCombineLoadStoreAlloca.cpp176 return IC.replaceOperand(AI, 0, IC.Builder.getInt32(1)); in simplifyAllocaArraySize()
218 return IC.replaceOperand(AI, 0, V); in simplifyAllocaArraySize()
367 return replaceOperand(AI, 0, in visitAllocaInst()
1018 return replaceOperand(LI, 0, SI->getOperand(2)); in visitLoadInst()
1024 return replaceOperand(LI, 0, SI->getOperand(1)); in visitLoadInst()
1433 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
H A DInstCombineVectorOps.cpp402 return replaceOperand(EI, 1, NewIdx); in visitExtractElementInst()
476 return replaceOperand(EI, 0, IE->getOperand(0)); in visitExtractElementInst()
566 return replaceOperand(EI, 0, V); in visitExtractElementInst()
1510 return replaceOperand(IE, 2, NewIdx); in visitInsertElementInst()
2409 return IC.replaceOperand(Shuf, 0, X); in foldShuffleWithInsert()
2417 return IC.replaceOperand(Shuf, 1, X); in foldShuffleWithInsert()
H A DInstCombineInternal.h426 Instruction *replaceOperand(Instruction &I, unsigned OpNum, Value *V) { in replaceOperand() function
H A DInstCombineCompares.cpp1615 return replaceOperand(Cmp, 0, X); in foldICmpXorConstant()
1743 return replaceOperand(Cmp, 0, NewAnd); in foldICmpAndShift()
1854 return replaceOperand(Cmp, 0, NewAnd); in foldICmpAndConstConst()
6675 return IC.replaceOperand(*I, 0, X); in foldFabsWithFcmpZero()
6795 return replaceOperand(I, 0, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
6798 return replaceOperand(I, 1, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
6827 return replaceOperand(I, 1, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
H A DInstCombineAddSub.cpp1422 replaceOperand(I, 0, A); in visitAdd()
1423 replaceOperand(I, 1, B); in visitAdd()
H A DInstCombinePHI.cpp1459 replaceOperand(PN, I, NonZeroConst); in visitPHINode()
H A DInstCombineSimplifyDemanded.cpp1257 replaceOperand(*Inst, OpNum, V); in SimplifyDemandedVectorElts()
H A DInstCombineShifts.cpp463 return replaceOperand(I, 1, Rem); in commonShiftTransforms()
H A DInstCombineCasts.cpp2069 return replaceOperand(CI, 0, GEP->getOperand(0)); in commonPointerCastTransforms()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp482 return IC.replaceOperand( in instCombineIntrinsic()
581 return IC.replaceOperand( in instCombineIntrinsic()
591 return IC.replaceOperand( in instCombineIntrinsic()
638 IC.replaceOperand(II, I + 2, UndefValue::get(Src->getType())); in instCombineIntrinsic()
779 IC.replaceOperand(II, 1, ConstantInt::getNullValue(Src1->getType())); in instCombineIntrinsic()
780 IC.replaceOperand(II, 2, in instCombineIntrinsic()
907 return IC.replaceOperand(II, 0, UndefValue::get(Old->getType())); in instCombineIntrinsic()
921 return IC.replaceOperand(II, 0, UndefValue::get(VDstIn->getType())); in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp1106 return IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1158 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1162 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1352 return IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1428 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1437 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1488 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1492 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1521 return IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1588 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h438 Instruction *replaceOperand(Instruction &I, unsigned OpNum, Value *V) { in replaceOperand() function
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp157 return IC.replaceOperand( in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1222 return IC.replaceOperand(II, 0, SetTuple); in instCombineSVETupleGet()