Searched refs:ShrAmt (Results 1 – 6 of 6) sorted by relevance
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 448 const APInt *ShrAmt; in SimplifyDemandedUseBits() local 449 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt)))) in SimplifyDemandedUseBits() 451 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits() 874 unsigned ShrAmt = ShrOp1.getZExtValue(); in simplifyShrShlDemandedBits() local 884 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits() 885 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits() 887 if (ShrAmt <= ShlAmt) { in simplifyShrShlDemandedBits() 888 BitMask2 <<= (ShlAmt - ShrAmt); in simplifyShrShlDemandedBits() 890 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits() 891 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits() [all …]
|
D | InstCombineShifts.cpp | 629 unsigned ShrAmt = ShOp1->getZExtValue(); in visitShl() local 630 if (ShrAmt < ShAmt) { in visitShl() 632 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShrAmt); in visitShl() 638 if (ShrAmt > ShAmt) { in visitShl() 640 Constant *ShiftDiff = ConstantInt::get(Ty, ShrAmt - ShAmt); in visitShl()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 849 unsigned ShrAmt = ShrOp1.getZExtValue(); in SimplifyShrShlDemandedBits() local 859 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in SimplifyShrShlDemandedBits() 860 (BitMask1.ashr(ShrAmt) << ShlAmt); in SimplifyShrShlDemandedBits() 862 if (ShrAmt <= ShlAmt) { in SimplifyShrShlDemandedBits() 863 BitMask2 <<= (ShlAmt - ShrAmt); in SimplifyShrShlDemandedBits() 865 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in SimplifyShrShlDemandedBits() 866 BitMask2.ashr(ShrAmt - ShlAmt); in SimplifyShrShlDemandedBits() 871 if (ShrAmt == ShlAmt) in SimplifyShrShlDemandedBits() 878 if (ShrAmt < ShlAmt) { in SimplifyShrShlDemandedBits() 879 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt); in SimplifyShrShlDemandedBits() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 7583 SDValue ShrAmt = in SimplifySelectCC() local 7586 SDValue Shr = DAG.getNode(ISD::SRA, N0.getDebugLoc(), VT, Shl, ShrAmt); in SimplifySelectCC()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 14317 SDValue ShrAmt = in SimplifySelectCC() local 14320 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 17920 SDValue ShrAmt = in SimplifySelectCC() local 17923 SDValue Shr = DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, ShrAmt); in SimplifySelectCC()
|