Lines Matching refs:Shl

1654   bool IsShl = ShiftOpcode == Instruction::Shl;  in foldICmpAndShift()
1659 if (ShiftOpcode == Instruction::Shl) { in foldICmpAndShift()
2170 static Instruction *foldICmpShlOne(ICmpInst &Cmp, Instruction *Shl, in foldICmpShlOne() argument
2173 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne()
2176 Type *ShiftType = Shl->getType(); in foldICmpShlOne()
2215 BinaryOperator *Shl, in foldICmpShlConstant() argument
2218 if (Cmp.isEquality() && match(Shl->getOperand(0), m_APInt(ShiftVal))) in foldICmpShlConstant()
2219 return foldICmpShlConstConst(Cmp, Shl->getOperand(1), C, *ShiftVal); in foldICmpShlConstant()
2227 if (C.sle(0) && Shl->hasNoUnsignedWrap() && Shl->hasNoSignedWrap()) in foldICmpShlConstant()
2228 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2233 (Shl->hasNoUnsignedWrap() || Shl->hasNoSignedWrap())) in foldICmpShlConstant()
2234 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2242 if (Shl->hasNoSignedWrap() && in foldICmpShlConstant()
2245 return new ICmpInst(Pred, Shl->getOperand(0), Cmp.getOperand(1)); in foldICmpShlConstant()
2248 if (!match(Shl->getOperand(1), m_APInt(ShiftAmt))) in foldICmpShlConstant()
2249 return foldICmpShlOne(Cmp, Shl, C); in foldICmpShlConstant()
2257 Value *X = Shl->getOperand(0); in foldICmpShlConstant()
2258 Type *ShType = Shl->getType(); in foldICmpShlConstant()
2263 if (Shl->hasNoSignedWrap()) { in foldICmpShlConstant()
2288 if (Shl->hasNoUnsignedWrap()) { in foldICmpShlConstant()
2310 if (Cmp.isEquality() && Shl->hasOneUse()) { in foldICmpShlConstant()
2315 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2322 if (Shl->hasOneUse() && isSignBitCheck(Pred, C, TrueIfSigned)) { in foldICmpShlConstant()
2327 Value *And = Builder.CreateAnd(X, Mask, Shl->getName() + ".mask"); in foldICmpShlConstant()
2333 if (Cmp.isUnsigned() && Shl->hasOneUse()) { in foldICmpShlConstant()
2360 if (Shl->hasOneUse() && Amt != 0 && C.countr_zero() >= Amt && in foldICmpShlConstant()
3702 case Instruction::Shl: in foldICmpBinOpWithConstant()
4992 case Instruction::Shl: { in foldICmpBinOp()