/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 848 unsigned ShlAmt = ShlOp1.getZExtValue(); in SimplifyShrShlDemandedBits() local 852 KnownZero = APInt::getBitsSet(KnownZero.getBitWidth(), 0, ShlAmt-1); in SimplifyShrShlDemandedBits() 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() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 973 unsigned ShlAmt = ShlOp1.getZExtValue(); in simplifyShrShlDemandedBits() local 977 Known.Zero.setLowBits(ShlAmt - 1); in simplifyShrShlDemandedBits() 984 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits() 985 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits() 987 if (ShrAmt <= ShlAmt) { in simplifyShrShlDemandedBits() 988 BitMask2 <<= (ShlAmt - ShrAmt); in simplifyShrShlDemandedBits() 990 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits() 991 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits() 996 if (ShrAmt == ShlAmt) in simplifyShrShlDemandedBits() 1003 if (ShrAmt < ShlAmt) { in simplifyShrShlDemandedBits() [all …]
|
D | InstCombineShifts.cpp | 1067 unsigned ShlAmt = ShOp1->getZExtValue(); in visitLShr() local 1068 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt); in visitLShr() 1081 unsigned ShlAmt = ShOp1->getZExtValue(); in visitLShr() local 1082 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt); in visitLShr() 1267 unsigned ShlAmt = ShOp1->getZExtValue(); in visitAShr() local 1268 if (ShlAmt < ShAmt) { in visitAShr() 1270 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt); in visitAShr() 1275 if (ShlAmt > ShAmt) { in visitAShr() 1277 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt); in visitAShr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 947 unsigned ShlAmt = ShlOp1.getZExtValue(); in simplifyShrShlDemandedBits() local 951 Known.Zero.setLowBits(ShlAmt - 1); in simplifyShrShlDemandedBits() 958 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits() 959 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits() 961 if (ShrAmt <= ShlAmt) { in simplifyShrShlDemandedBits() 962 BitMask2 <<= (ShlAmt - ShrAmt); in simplifyShrShlDemandedBits() 964 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits() 965 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits() 970 if (ShrAmt == ShlAmt) in simplifyShrShlDemandedBits() 977 if (ShrAmt < ShlAmt) { in simplifyShrShlDemandedBits() [all …]
|
D | InstCombineShifts.cpp | 1082 unsigned ShlAmt = ShOp1->getZExtValue(); in visitLShr() local 1083 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt); in visitLShr() 1096 unsigned ShlAmt = ShOp1->getZExtValue(); in visitLShr() local 1097 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt); in visitLShr() 1276 unsigned ShlAmt = ShOp1->getZExtValue(); in visitAShr() local 1277 if (ShlAmt < ShAmt) { in visitAShr() 1279 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt); in visitAShr() 1284 if (ShlAmt > ShAmt) { in visitAShr() 1286 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt); in visitAShr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 2362 unsigned ShlAmt = !IsRight ? ShAmt : BitWidth - ShAmt; in ConstantFoldScalarCall3() local 2366 return ConstantInt::get(Ty, C0->shl(ShlAmt)); in ConstantFoldScalarCall3() 2367 return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt)); in ConstantFoldScalarCall3()
|
D | ScalarEvolution.cpp | 6468 uint64_t ShlAmt = ShlAmtCI->getZExtValue(); in createSCEV() local 6469 if (ShlAmt > AShrAmt) { in createSCEV() 6475 ShlAmt - AShrAmt); in createSCEV()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 1874 int ShlAmt = VT.getSizeInBits() - 1 - IPM.Bit; in expandSelectBoolean() local 1877 CurDAG->getConstant(ShlAmt, DL, MVT::i32)); in expandSelectBoolean()
|
D | SystemZISelLowering.cpp | 5646 if (auto *ShlAmt = dyn_cast<ConstantSDNode>(Inner.getOperand(1))) { in combineSIGN_EXTEND() local 5648 unsigned NewShlAmt = ShlAmt->getZExtValue() + Extra; in combineSIGN_EXTEND()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 1919 int ShlAmt = VT.getSizeInBits() - 1 - IPM.Bit; in expandSelectBoolean() local 1922 CurDAG->getConstant(ShlAmt, DL, MVT::i32)); in expandSelectBoolean()
|
D | SystemZISelLowering.cpp | 5902 if (auto *ShlAmt = dyn_cast<ConstantSDNode>(Inner.getOperand(1))) { in combineSIGN_EXTEND() local 5904 unsigned NewShlAmt = ShlAmt->getZExtValue() + Extra; in combineSIGN_EXTEND()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 2818 unsigned ShlAmt = !IsRight ? ShAmt : BitWidth - ShAmt; in ConstantFoldScalarCall3() local 2822 return ConstantInt::get(Ty, C0->shl(ShlAmt)); in ConstantFoldScalarCall3() 2823 return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt)); in ConstantFoldScalarCall3()
|
D | ScalarEvolution.cpp | 6632 uint64_t ShlAmt = ShlAmtCI->getZExtValue(); in createSCEV() local 6633 if (ShlAmt > AShrAmt) { in createSCEV() 6639 ShlAmt - AShrAmt); in createSCEV()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 4866 if (auto *ShlAmt = dyn_cast<ConstantSDNode>(Inner.getOperand(1))) { in combineSIGN_EXTEND() local 4869 unsigned NewShlAmt = ShlAmt->getZExtValue() + Extra; in combineSIGN_EXTEND()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 14310 SDValue ShlAmt = in SimplifySelectCC() local 14313 SDValue Shl = DAG.getNode(ISD::SHL, SDLoc(N0), VT, AndLHS, ShlAmt); in SimplifySelectCC()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 20404 SDValue ShlAmt = in SimplifySelectCC() local 20407 SDValue Shl = DAG.getNode(ISD::SHL, SDLoc(N0), VT, AndLHS, ShlAmt); in SimplifySelectCC()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 21879 SDValue ShlAmt = in SimplifySelectCC() local 21882 SDValue Shl = DAG.getNode(ISD::SHL, SDLoc(N0), VT, AndLHS, ShlAmt); in SimplifySelectCC()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 12353 unsigned ShlAmt = RotateAmt; in lowerShuffleAsBitRotate() local 12357 DAG.getTargetConstant(ShlAmt, DL, MVT::i8)); in lowerShuffleAsBitRotate() 41061 SDValue ShlAmt = getConstVector(ShlVals, VT.getSimpleVT(), DAG, DL); in combineSelect() local 41062 SDValue Shl = DAG.getNode(ISD::SHL, DL, VT, And.getOperand(0), ShlAmt); in combineSelect()
|