Lines Matching refs:CmpRHS

677   Value *CmpRHS = IC->getOperand(1);  in foldSelectICmpLshrAshr()  local
678 if (!CmpRHS->getType()->isIntOrIntVectorTy()) in foldSelectICmpLshrAshr()
682 unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits(); in foldSelectICmpLshrAshr()
684 !match(CmpRHS, in foldSelectICmpLshrAshr()
687 !match(CmpRHS, in foldSelectICmpLshrAshr()
737 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndBinOp() local
743 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndBinOp()
753 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, CmpLHS, C1) || in foldSelectICmpAndBinOp()
1138 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
1164 if ((X != CmpLHS || !match(CmpRHS, m_Zero())) && in foldSelectCttzCtlz()
1165 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes()))) in foldSelectCttzCtlz()
1299 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); in foldSelectValueEquivalence() local
1344 if (Instruction *R = ReplaceOldOpWithNewOp(CmpLHS, CmpRHS)) in foldSelectValueEquivalence()
1346 if (Instruction *R = ReplaceOldOpWithNewOp(CmpRHS, CmpLHS)) in foldSelectValueEquivalence()
1362 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, SQ, in foldSelectValueEquivalence()
1365 simplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, SQ, in foldSelectValueEquivalence()
1726 Value *CmpRHS = ICI->getOperand(1); in foldSelectICmpEq() local
1749 return match(CmpRHS, m_Zero()) && match(FalseVal, matchInner); in foldSelectICmpEq()
1753 m_Specific(CmpRHS))); in foldSelectICmpEq()
1756 m_NotForbidPoison(m_Specific(CmpRHS)))); in foldSelectICmpEq()
1759 m_c_BinOp(OuterOpc, matchInner, m_Specific(CmpRHS))); in foldSelectICmpEq()
1849 Value *CmpRHS = ICI->getOperand(1); in foldSelectInstWithICmp() local
1850 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS) && !isa<Constant>(CmpLHS)) { in foldSelectInstWithICmp()
1853 replaceOperand(SI, 1, CmpRHS); in foldSelectInstWithICmp()
1857 replaceOperand(SI, 2, CmpRHS); in foldSelectInstWithICmp()
1869 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes()) && in foldSelectInstWithICmp()
1893 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1896 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp()
1901 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp()
3815 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1); in visitSelectInst() local
3819 (CmpRHS != LHS && CmpRHS != RHS)))) { in visitSelectInst()