Home
last modified time | relevance | path

Searched refs:NewShift (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp136 BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt); in reassociateShiftAmtsOfTwoSameDirectionShifts() local
143 NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
145 NewShift->setHasNoSignedWrap(Sh0->hasNoSignedWrap() && in reassociateShiftAmtsOfTwoSameDirectionShifts()
148 NewShift->setIsExact(Sh0->isExact() && Sh1->isExact()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
152 Instruction *Ret = NewShift; in reassociateShiftAmtsOfTwoSameDirectionShifts()
154 Builder.Insert(NewShift); in reassociateShiftAmtsOfTwoSameDirectionShifts()
155 Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
310 auto *NewShift = BinaryOperator::Create(OuterShift->getOpcode(), X, in dropRedundantMaskingOfLeftShiftInput() local
313 return NewShift; in dropRedundantMaskingOfLeftShiftInput()
315 Builder.Insert(NewShift); in dropRedundantMaskingOfLeftShiftInput()
[all …]
DInstCombineAddSub.cpp1796 Instruction *NewShift = BinaryOperator::CreateAShr(X, ShAmtOp); in visitSub() local
1797 NewShift->copyIRFlags(Op1Wide); in visitSub()
1799 return NewShift; in visitSub()
1800 Builder.Insert(NewShift); in visitSub()
1801 return TruncInst::CreateTruncOrBitCast(NewShift, Op1->getType()); in visitSub()
1808 Instruction *NewShift = BinaryOperator::CreateLShr(X, ShAmtOp); in visitSub() local
1809 NewShift->copyIRFlags(Op1Wide); in visitSub()
1811 return NewShift; in visitSub()
1812 Builder.Insert(NewShift); in visitSub()
1813 return TruncInst::CreateTruncOrBitCast(NewShift, Op1->getType()); in visitSub()
DInstCombineCompares.cpp1702 Value *NewShift = in foldICmpAndShift() local
1707 Value *NewAnd = Builder.CreateAnd(Shift->getOperand(0), NewShift); in foldICmpAndShift()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp3105 SDValue NewShift = DAG.getNode(ISD::SHL, SL, MVT::i32, Lo, ShiftAmt); in performShlCombine() local
3109 SDValue Vec = DAG.getBuildVector(MVT::v2i32, SL, {Zero, NewShift}); in performShlCombine()
3129 SDValue NewShift = DAG.getNode(ISD::SRA, SL, MVT::i32, Hi, in performSraCombine() local
3132 SDValue BuildVec = DAG.getBuildVector(MVT::v2i32, SL, {Hi, NewShift}); in performSraCombine()
3139 SDValue NewShift = DAG.getNode(ISD::SRA, SL, MVT::i32, Hi, in performSraCombine() local
3141 SDValue BuildVec = DAG.getBuildVector(MVT::v2i32, SL, {NewShift, NewShift}); in performSraCombine()
3190 SDValue NewShift = DAG.getNode(ISD::SRL, SL, MVT::i32, Hi, NewConst); in performSrlCombine() local
3192 SDValue BuildPair = DAG.getBuildVector(MVT::v2i32, SL, {NewShift, Zero}); in performSrlCombine()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp1722 SDValue NewShift = DAG.getNode(ISD::SHL, DL, VT, NewAnd, Shift.getOperand(1)); in foldMaskedShiftToScaledMask() local
1731 insertDAGNode(DAG, N, NewShift); in foldMaskedShiftToScaledMask()
1732 DAG.ReplaceAllUsesWith(N, NewShift); in foldMaskedShiftToScaledMask()
DX86ISelLowering.cpp35884 SDValue NewShift = TLO.DAG.getNode( in SimplifyDemandedBitsForTargetNode() local
35887 return TLO.CombineTo(Op, NewShift); in SimplifyDemandedBitsForTargetNode()
39498 SDValue NewShift = DAG.getNode(ISD::SRL, DL, VT, N0.getOperand(0), N1); in combineShiftRightLogical() local
39499 return DAG.getNode(ISD::AND, DL, VT, NewShift, NewMask); in combineShiftRightLogical()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp2074 SDValue NewShift = DAG.getNode(ShOpcode, DL, VT, Not.getOperand(0), ShAmt); in foldAddSubOfSignBit() local
2076 return DAG.getNode(ISD::ADD, DL, VT, NewShift, DAG.getConstant(NewC, DL, VT)); in foldAddSubOfSignBit()
7361 SDValue NewShift = DAG.getNode(N->getOpcode(), DL, VT, LHS.getOperand(0), in visitShiftByConstant() local
7363 return DAG.getNode(LHS.getOpcode(), DL, VT, NewShift, NewRHS); in visitShiftByConstant()
7963 SDValue NewShift = DAG.getNode(ISD::SRL, DL, InnerShiftVT, in visitSRL() local
7965 return DAG.getNode(ISD::TRUNCATE, DL, VT, NewShift); in visitSRL()
7973 SDValue NewShift = DAG.getNode(ISD::SRL, DL, InnerShiftVT, in visitSRL() local
7978 SDValue And = DAG.getNode(ISD::AND, DL, InnerShiftVT, NewShift, Mask); in visitSRL()