Lines Matching refs:NewShift
147 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts() local
154 NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
156 NewShift->setHasNoSignedWrap(Sh0->hasNoSignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
159 NewShift->setIsExact(Sh0->isExact() && Sh1->isExact()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
163 Instruction *Ret = NewShift; in reassociateShiftAmtsOfTwoSameDirectionShifts()
165 Builder.Insert(NewShift); in reassociateShiftAmtsOfTwoSameDirectionShifts()
166 Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
331 auto *NewShift = BinaryOperator::Create(OuterShift->getOpcode(), X, in dropRedundantMaskingOfLeftShiftInput() local
334 return NewShift; in dropRedundantMaskingOfLeftShiftInput()
336 Builder.Insert(NewShift); in dropRedundantMaskingOfLeftShiftInput()
337 return BinaryOperator::Create(Instruction::And, NewShift, NewMask); in dropRedundantMaskingOfLeftShiftInput()
431 if (auto *NewShift = cast_or_null<Instruction>( in commonShiftTransforms() local
433 return NewShift; in commonShiftTransforms()
821 Value *NewShift = in FoldShiftByConstant() local
823 NewShift->takeName(Op0BO); in FoldShiftByConstant()
825 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
850 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant() local
851 Value *NewOp = Builder.CreateBinOp(TBO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
852 return SelectInst::Create(Cond, NewOp, NewShift); in FoldShiftByConstant()
867 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), TrueVal, C1); in FoldShiftByConstant() local
868 Value *NewOp = Builder.CreateBinOp(FBO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
869 return SelectInst::Create(Cond, NewShift, NewOp); in FoldShiftByConstant()
1110 Value *NewShift = Builder.CreateBinOp(ShiftOpc, X, ShiftDiffC, "sh.diff"); in visitShl() local
1111 Value *Trunc = Builder.CreateTrunc(NewShift, Ty, "tr.sh.diff"); in visitShl()
1185 Value *NewShift = Builder.CreateShl(X, Op1); in visitShl() local
1186 return BinaryOperator::CreateSub(NewLHS, NewShift); in visitShl()
1454 Value *NewShift = Builder.CreateLShr(NarrowSwap, ShAmtC - WidthDiff); in visitLShr() local
1455 return new ZExtInst(NewShift, Ty); in visitLShr()