Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()