Lines Matching refs:CmpLHS
373 Value *CmpLHS = IC->getOperand(0);
381 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1))))
393 Value *V = CmpLHS;
422 Value *CmpLHS = ICI->getOperand(0);
459 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) ||
460 (CmpLHS == FalseVal && AdjustedRHS == TrueVal))
474 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) &&
476 CmpLHS = TrueVal;
478 } else if (match(FalseVal, m_SExt(m_Specific(CmpLHS))) &&
480 CmpLHS = FalseVal;
488 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) &&
490 CmpLHS = TrueVal;
492 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS))) &&
494 CmpLHS = FalseVal;
507 ICI->setOperand(0, CmpLHS);
527 if (IntegerType *Ty = dyn_cast<IntegerType>(CmpLHS->getType())) {
540 Value *AShr = Builder->CreateAShr(CmpLHS, Ty->getBitWidth()-1);
557 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, TD, TLI) == TrueVal ||
558 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, TD, TLI) == TrueVal)
560 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, TD, TLI) == FalseVal ||
561 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, TD, TLI) == FalseVal)
564 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, TD, TLI) == FalseVal ||
565 SimplifyWithOpReplaced(TrueVal, CmpRHS, CmpLHS, TD, TLI) == FalseVal)
567 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, TD, TLI) == TrueVal ||
568 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, TD, TLI) == TrueVal)
574 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS)) {
575 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) {
579 } else if (CmpLHS == FalseVal && Pred == ICmpInst::ICMP_NE) {