Home | History | Annotate | Download | only in Analysis

Lines Matching defs:Cmp

81   CmpInst *Cmp = dyn_cast<CmpInst>(V);
82 if (!Cmp)
84 CmpInst::Predicate CPred = Cmp->getPredicate();
85 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1);
448 // Now that we have "cmp select(Cond, TV, FV), RHS", analyse it.
449 // Does "cmp TV, RHS" simplify?
456 // It didn't simplify. However if "cmp TV, RHS" is equal to the select
463 // Does "cmp FV, RHS" simplify?
470 // It didn't simplify. However if "cmp FV, RHS" is equal to the select
1691 CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition());
1692 if (!Cmp)
1694 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
1695 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
1696 return Cmp;
1697 if (Pred == CmpInst::getSwappedPredicate(Cmp->getPredicate()) &&
1699 return Cmp;