Lines Matching refs:NewShift

142   BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt);  in reassociateShiftAmtsOfTwoSameDirectionShifts()  local
149 NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
151 NewShift->setHasNoSignedWrap(Sh0->hasNoSignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
154 NewShift->setIsExact(Sh0->isExact() && Sh1->isExact()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
158 Instruction *Ret = NewShift; in reassociateShiftAmtsOfTwoSameDirectionShifts()
160 Builder.Insert(NewShift); in reassociateShiftAmtsOfTwoSameDirectionShifts()
161 Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
316 auto *NewShift = BinaryOperator::Create(OuterShift->getOpcode(), X, in dropRedundantMaskingOfLeftShiftInput() local
319 return NewShift; in dropRedundantMaskingOfLeftShiftInput()
321 Builder.Insert(NewShift); in dropRedundantMaskingOfLeftShiftInput()
322 return BinaryOperator::Create(Instruction::And, NewShift, NewMask); in dropRedundantMaskingOfLeftShiftInput()
399 if (auto *NewShift = cast_or_null<Instruction>( in commonShiftTransforms() local
401 return NewShift; in commonShiftTransforms()
774 Value *NewShift = in FoldShiftByConstant() local
776 NewShift->takeName(Op0BO); in FoldShiftByConstant()
778 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
803 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant() local
804 Value *NewOp = Builder.CreateBinOp(TBO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
805 return SelectInst::Create(Cond, NewOp, NewShift); in FoldShiftByConstant()
820 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), TrueVal, C1); in FoldShiftByConstant() local
821 Value *NewOp = Builder.CreateBinOp(FBO->getOpcode(), NewShift, NewRHS); in FoldShiftByConstant()
822 return SelectInst::Create(Cond, NewShift, NewOp); in FoldShiftByConstant()
931 Value *NewShift = Builder.CreateBinOp(ShiftOpc, X, ShiftDiffC, "sh.diff"); in visitShl() local
932 Value *Trunc = Builder.CreateTrunc(NewShift, Ty, "tr.sh.diff"); in visitShl()
1006 Value *NewShift = Builder.CreateShl(X, Op1); in visitShl() local
1007 return BinaryOperator::CreateSub(NewLHS, NewShift); in visitShl()
1268 Value *NewShift = Builder.CreateLShr(NarrowSwap, ShAmtC - WidthDiff); in visitLShr() local
1269 return new ZExtInst(NewShift, Ty); in visitLShr()