Home
last modified time | relevance | path

Searched refs:ShiftValC (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dicmp-shr.ll1185 ; (ShiftValC >> X) >s -1 --> X != 0 with ShiftValC < 0
1244 ; (ShiftValC >> X) <s 0 --> X == 0 with ShiftValC < 0
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2271 const APInt *ShiftValC; in foldICmpShrConstant() local
2272 if (match(X, m_APInt(ShiftValC))) { in foldICmpShrConstant()
2274 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftValC); in foldICmpShrConstant()
2279 if (!IsAShr && ShiftValC->isNegative() && in foldICmpShrConstant()
2288 if (!IsAShr && ShiftValC->isPowerOf2() && in foldICmpShrConstant()
2291 assert(ShiftValC->uge(C) && "Expected simplify of compare"); in foldICmpShrConstant()
2296 unsigned ShiftLZ = ShiftValC->countLeadingZeros(); in foldICmpShrConstant()