reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 1155   assert(I.isEquality() && "Cannot fold icmp gt/lt");
 1157   auto getICmp = [&I](CmpInst::Predicate Pred, Value *LHS, Value *RHS) {
 1158     if (I.getPredicate() == I.ICMP_NE)
 1158     if (I.getPredicate() == I.ICMP_NE)
 1167   bool IsAShr = isa<AShrOperator>(I.getOperand(0));
 1179     return getICmp(I.ICMP_UGT, A,
 1183     return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
 1196         return getICmp(I.ICMP_UGE, A, ConstantInt::get(A->getType(), Shift));
 1197       return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
 1199       return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
 1205   auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
 1205   auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
 1205   auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
 1206   return replaceInstUsesWith(I, TorF);