Lines Matching defs:CondCmp
1068 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondWithoutFreeze)) {
1072 if (Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1))) {
1074 LVI->getPredicateAt(CondCmp->getPredicate(), CondCmp->getOperand(0),
1085 if (replaceFoldableUses(CondCmp, Res, BB))
1090 // CondCmp depends on a known phi-select pattern.
1091 if (tryToUnfoldSelect(CondCmp, BB))
1106 if (CmpInst *CondCmp = dyn_cast<CmpInst>(SimplifyValue))
1107 if (isa<Constant>(CondCmp->getOperand(1)))
1108 SimplifyValue = CondCmp->getOperand(0);
1524 if (CmpInst *CondCmp = dyn_cast<CmpInst>(V)) {
1525 if (CondCmp->getParent() == BB) {
1527 evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(0), DL);
1529 evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(1), DL);
1531 return ConstantFoldCompareInstOperands(CondCmp->getPredicate(), Op0,
2854 bool JumpThreadingPass::tryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB) {
2856 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0));
2857 Constant *CondRHS = cast<Constant>(CondCmp->getOperand(1));
2880 LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(1),
2881 CondRHS, Pred, BB, CondCmp);
2883 LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(2),
2884 CondRHS, Pred, BB, CondCmp);