Lines Matching defs:CondCmp
1067 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondWithoutFreeze)) {
1071 if (Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1))) {
1073 LVI->getPredicateAt(CondCmp->getPredicate(), CondCmp->getOperand(0),
1084 if (replaceFoldableUses(CondCmp, Res, BB))
1089 // CondCmp depends on a known phi-select pattern.
1090 if (tryToUnfoldSelect(CondCmp, BB))
1105 if (CmpInst *CondCmp = dyn_cast<CmpInst>(SimplifyValue))
1106 if (isa<Constant>(CondCmp->getOperand(1)))
1107 SimplifyValue = CondCmp->getOperand(0);
1523 if (CmpInst *CondCmp = dyn_cast<CmpInst>(V)) {
1524 if (CondCmp->getParent() == BB) {
1526 evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(0), DL);
1528 evaluateOnPredecessorEdge(BB, PredPredBB, CondCmp->getOperand(1), DL);
1530 return ConstantFoldCompareInstOperands(CondCmp->getPredicate(), Op0,
2851 bool JumpThreadingPass::tryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB) {
2853 PHINode *CondLHS = dyn_cast<PHINode>(CondCmp->getOperand(0));
2854 Constant *CondRHS = cast<Constant>(CondCmp->getOperand(1));
2877 LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(1),
2878 CondRHS, Pred, BB, CondCmp);
2880 LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(2),
2881 CondRHS, Pred, BB, CondCmp);