Lines Matching refs:replaceInstUsesWith
328 return replaceInstUsesWith(ICI, Builder.getFalse()); in foldCmpLoadFromIndexedGlobal()
349 return replaceInstUsesWith(ICI, Builder.getTrue()); in foldCmpLoadFromIndexedGlobal()
618 IC.replaceInstUsesWith(*cast<Instruction>(Val), NewVal); in rewriteGEPAsOffset()
776 return replaceInstUsesWith(I, Cmp); in foldGEPICmp()
810 return replaceInstUsesWith(I, // No comparison is needed here. in foldGEPICmp()
893 replaceInstUsesWith(*ICmp, Res); in foldAllocaCmp()
1016 return replaceInstUsesWith(I, TorF); in foldICmpShrConstConst()
1055 return replaceInstUsesWith(I, TorF); in foldICmpShlConstConst()
1141 IC.replaceInstUsesWith(*OrigAdd, ZExt); in processUGT_ADDCST_ADD()
1324 return replaceInstUsesWith(Cmp, NewPhi); in foldICmpWithConstant()
1359 return replaceInstUsesWith(Cmp, Builder.getFalse()); in foldICmpWithDominatingICmp()
1361 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpWithDominatingICmp()
1713 return replaceInstUsesWith(Cmp, ConstantInt::getFalse(Cmp.getType())); in foldICmpAndShift()
1715 return replaceInstUsesWith(Cmp, ConstantInt::getTrue(Cmp.getType())); in foldICmpAndShift()
1864 return replaceInstUsesWith(Cmp, Builder.createIsFPClass(V, Mask)); in foldICmpAndConstConst()
1946 return replaceInstUsesWith(Cmp, R); in foldICmpAndConstant()
2133 return replaceInstUsesWith(Cmp, V); in foldICmpOrConstant()
2843 return replaceInstUsesWith(Cmp, Builder.getFalse()); in foldICmpDivConstant()
2850 return replaceInstUsesWith( in foldICmpDivConstant()
2854 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
2861 return replaceInstUsesWith( in foldICmpDivConstant()
2866 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
2868 return replaceInstUsesWith(Cmp, Builder.getFalse()); in foldICmpDivConstant()
2873 return replaceInstUsesWith(Cmp, Builder.getFalse()); in foldICmpDivConstant()
2875 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
3052 return replaceInstUsesWith(Cmp, Cond); in foldICmpAddConstant()
3255 return replaceInstUsesWith(Cmp, Cond); in foldICmpSelectConstant()
3342 return replaceInstUsesWith(Cmp, in foldICmpBitCast()
4723 replaceInstUsesWith(*Mul, Builder.CreateExtractValue(Call, 0, "mul.val")); in foldMultiplicationOverflowCheck()
5243 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpBinOp()
5245 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpBinOp()
5359 return replaceInstUsesWith(I, V); in foldICmpBinOp()
5365 return replaceInstUsesWith(I, V); in foldICmpBinOp()
5368 return replaceInstUsesWith(I, V); in foldICmpBinOp()
5413 return replaceInstUsesWith(I, ConstantInt::getBool(I.getType(), *CmpYZ)); in foldICmpWithMinMax()
5452 return replaceInstUsesWith( in foldICmpWithMinMax()
5480 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpWithMinMax()
5503 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpWithMinMax()
6261 IC.replaceInstUsesWith(*TI, Mul); in processUMulZExtIdiom()
6271 IC.replaceInstUsesWith(*BO, Zext); in processUMulZExtIdiom()
6574 return replaceInstUsesWith( in foldICmpUsingKnownBits()
6618 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6620 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6625 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6627 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6632 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6634 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6639 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6641 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6647 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6649 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6656 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6658 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6665 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6667 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6674 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
6676 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
6734 return replaceInstUsesWith( in foldICmpUsingBoolRange()
6749 return replaceInstUsesWith( in foldICmpUsingBoolRange()
7234 return replaceInstUsesWith(CxtI, ConstantInt::getTrue(CxtI.getType())); in foldICmpCommutative()
7237 return replaceInstUsesWith(CxtI, ConstantInt::getFalse(CxtI.getType())); in foldICmpCommutative()
7241 return replaceInstUsesWith( in foldICmpCommutative()
7250 return replaceInstUsesWith( in foldICmpCommutative()
7264 return replaceInstUsesWith(CxtI, V); in foldICmpCommutative()
7316 return replaceInstUsesWith(I, V); in visitICmpInst()
7521 replaceInstUsesWith(*AddI, Result); in visitICmpInst()
7523 return replaceInstUsesWith(I, Overflow); in visitICmpInst()
7555 return replaceInstUsesWith(I, Cmp); in visitICmpInst()
7633 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7636 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7701 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7703 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7719 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7720 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7731 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7732 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7744 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7745 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7755 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7756 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7775 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7777 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7782 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7794 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldFCmpIntToFPConst()
7807 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
7819 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldFCmpIntToFPConst()
8067 return replaceInstUsesWith(I, V); in visitFCmpInst()
8289 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in visitFCmpInst()
8300 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in visitFCmpInst()