Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ShAmt

948                                           ConstantInt *ShAmt) {
955 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1281 ConstantInt *ShAmt;
1282 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : nullptr;
1287 if (ShAmt) {
1312 cast<ConstantInt>(ConstantExpr::getShl(AndCst, ShAmt));
1314 cast<ConstantInt>(ConstantExpr::getShl(RHS, ShAmt));
1324 NewCst = ConstantExpr::getLShr(RHS, ShAmt);
1326 NewCst = ConstantExpr::getShl(RHS, ShAmt);
1330 if (ConstantExpr::get(ShiftOpcode, NewCst, ShAmt) != RHS) {
1342 NewAndCst = ConstantExpr::getLShr(AndCst, ShAmt);
1344 NewAndCst = ConstantExpr::getShl(AndCst, ShAmt);
1490 case Instruction::Shl: { // (icmp pred (shl X, ShAmt), CI)
1492 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1));
1493 if (!ShAmt) {
1559 if (ShAmt->uge(TypeBits))
1566 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt),
1567 ShAmt);
1578 ConstantExpr::getLShr(RHS, ShAmt));
1584 ConstantExpr::getLShr(RHS, ShAmt));
1588 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits);
1595 ConstantExpr::getLShr(RHS, ShAmt));
1615 TypeBits-ShAmt->getZExtValue()-1));
1628 unsigned Amt = ShAmt->getLimitedValue(TypeBits-1);
1644 case Instruction::LShr: // (icmp pred (shr X, ShAmt), CI)
1648 if (ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1649 if (Instruction *Res = FoldICmpShrCst(ICI, BO, ShAmt))
3621 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits);
3622 if (ShAmt < TypeBits && ShAmt != 0) {
3627 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt);
3636 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits);
3637 if (ShAmt < TypeBits && ShAmt != 0) {
3639 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt);
3649 uint64_t ShAmt = 0;
3652 m_ConstantInt(ShAmt))))) &&
3659 if (ShAmt < ASize) {
3662 MaskV <<= ShAmt;
3665 CmpV <<= ShAmt;