Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Cmp

466   if (CmpInst *Cmp = dyn_cast<CmpInst>(I)) {
468 PHINode *PN = dyn_cast<PHINode>(Cmp->getOperand(0));
475 Value *RHS = Cmp->getOperand(1)->DoPHITranslation(BB, PredBB);
477 Value *Res = SimplifyCmpInst(Cmp->getPredicate(), LHS, RHS, TD);
483 ResT = LVI->getPredicateOnEdge(Cmp->getPredicate(), LHS,
500 if (isa<Constant>(Cmp->getOperand(1)) && Cmp->getType()->isIntegerTy()) {
501 if (!isa<Instruction>(Cmp->getOperand(0)) ||
502 cast<Instruction>(Cmp->getOperand(0))->getParent() != BB) {
503 Constant *RHSCst = cast<Constant>(Cmp->getOperand(1));
510 LVI->getPredicateOnEdge(Cmp->getPredicate(), Cmp->getOperand(0),
515 Constant *ResC = ConstantInt::get(Cmp->getType(), Res);
524 if (Constant *CmpConst = dyn_cast<Constant>(Cmp->getOperand(1))) {
531 Constant *Folded = ConstantExpr::getCompare(Cmp->getPredicate(),