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);
376 // Now that we have "cmp select(Cond, TV, FV), RHS", analyse it.
377 // Does "cmp TV, RHS" simplify?
384 // It didn't simplify. However if "cmp TV, RHS" is equal to the select
391 // Does "cmp FV, RHS" simplify?
398 // It didn't simplify. However if "cmp FV, RHS" is equal to the select
1642 CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition());
1643 if (!Cmp)
1645 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
1646 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
1647 return Cmp;
1648 if (Pred == CmpInst::getSwappedPredicate(Cmp->getPredicate()) &&
1650 return Cmp;