Home
last modified time | relevance | path

Searched refs:ShlAmt (Results 1 – 18 of 18) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp848 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/
DInstCombineSimplifyDemanded.cpp973 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 …]
DInstCombineShifts.cpp1067 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/
DInstCombineSimplifyDemanded.cpp947 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 …]
DInstCombineShifts.cpp1082 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/
DConstantFolding.cpp2362 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()
DScalarEvolution.cpp6468 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/
DSystemZISelDAGToDAG.cpp1874 int ShlAmt = VT.getSizeInBits() - 1 - IPM.Bit; in expandSelectBoolean() local
1877 CurDAG->getConstant(ShlAmt, DL, MVT::i32)); in expandSelectBoolean()
DSystemZISelLowering.cpp5646 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/
DSystemZISelDAGToDAG.cpp1919 int ShlAmt = VT.getSizeInBits() - 1 - IPM.Bit; in expandSelectBoolean() local
1922 CurDAG->getConstant(ShlAmt, DL, MVT::i32)); in expandSelectBoolean()
DSystemZISelLowering.cpp5902 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/
DConstantFolding.cpp2818 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()
DScalarEvolution.cpp6632 uint64_t ShlAmt = ShlAmtCI->getZExtValue(); in createSCEV() local
6633 if (ShlAmt > AShrAmt) { in createSCEV()
6639 ShlAmt - AShrAmt); in createSCEV()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp4866 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/
DDAGCombiner.cpp14310 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/
DDAGCombiner.cpp20404 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/
DDAGCombiner.cpp21879 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/
DX86ISelLowering.cpp12353 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()