Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:Cst

1390     assert(Res && "This div/cst should have folded!");
1405 Constant *Cst = Builder->getInt1(IsICMP_NE);
1406 return replaceInstUsesWith(ICI, Cst);
2001 Constant *Cst = Builder->getInt1(IsICMP_NE);
2002 return replaceInstUsesWith(ICI, Cst);
2373 /// Handle icmp (cast x to y), (cast/cst). We only handle extending casts so
3776 // Handle the special case of: icmp (cast bool to X), <cst>
3814 // icmp (X+cst) < 0 --> X < -cst
3962 // icmp (0-X) < cst --> x > -cst
4037 // a * Cst icmp eq/ne b * Cst --> a & Mask icmp b & Mask
4038 // Mask = -1 >> count-trailing-zeros(Cst).
4100 // ~x < cst --> ~cst < x
4241 // Transform "icmp eq (trunc (lshr(X, cst1)), cst" to
4242 // "icmp (and X, mask), cst"
4284 Value *X; ConstantInt *Cst;
4285 // icmp X+Cst, X
4286 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X)
4287 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate());
4289 // icmp X, X+Cst
4290 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op0 == X)
4291 return FoldICmpAddOpCst(I, X, Cst, I.getSwappedPredicate());
4296 /// Fold fcmp ([us]itofp x, cst) if possible.