Lines Matching refs:Shl
1671 bool IsShl = ShiftOpcode == Instruction::Shl; in foldICmpAndShift()
1676 if (ShiftOpcode == Instruction::Shl) { in foldICmpAndShift()
2230 static Instruction *foldICmpShlOne(ICmpInst &Cmp, Instruction *Shl, in foldICmpShlOne() argument
2233 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne()
2236 Type *ShiftType = Shl->getType(); in foldICmpShlOne()
2275 BinaryOperator *Shl, in foldICmpShlConstant() argument
2278 if (Cmp.isEquality() && match(Shl->getOperand(0), m_APInt(ShiftVal))) in foldICmpShlConstant()
2279 return foldICmpShlConstConst(Cmp, Shl->getOperand(1), C, *ShiftVal); in foldICmpShlConstant()
2287 if (C.sle(0) && Shl->hasNoUnsignedWrap() && Shl->hasNoSignedWrap()) in foldICmpShlConstant()
2288 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2293 (Shl->hasNoUnsignedWrap() || Shl->hasNoSignedWrap())) in foldICmpShlConstant()
2294 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2302 if (Shl->hasNoSignedWrap() && in foldICmpShlConstant()
2305 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2308 if (!match(Shl->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShlConstant()
2309 return foldICmpShlOne(Cmp, Shl, C); in foldICmpShlConstant()
2317 Value *X = Shl->getOperand(0); in foldICmpShlConstant()
2318 Type *ShType = Shl->getType(); in foldICmpShlConstant()
2323 if (Shl->hasNoSignedWrap()) { in foldICmpShlConstant()
2348 if (Shl->hasNoUnsignedWrap()) { in foldICmpShlConstant()
2370 if (Cmp.isEquality() && Shl->hasOneUse()) { in foldICmpShlConstant()
2375 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2382 if (Shl->hasOneUse() && isSignBitCheck(Pred, C, TrueIfSigned)) { in foldICmpShlConstant()
2387 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2393 if (Cmp.isUnsigned() && Shl->hasOneUse()) { in foldICmpShlConstant()
2420 if (Shl->hasOneUse() && Amt != 0 && in foldICmpShlConstant()
2446 Shl->hasNoSignedWrap()), in foldICmpShlConstant()
3814 case Instruction::Shl: in foldICmpBinOpWithConstant()
4224 case Instruction::Shl: in isMaskOrZero()
5323 case Instruction::Shl: { in foldICmpBinOp()