Lines Matching refs:Val2
898 Value *Val = LHS->getOperand(0), *Val2 = RHS->getOperand(0); in FoldAndOfICmps() local
909 Value *NewOr = Builder->CreateOr(Val, Val2); in FoldAndOfICmps()
924 if (match(Val2, m_Trunc(m_Value(V))) && in FoldAndOfICmps()
929 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
951 if (Val != Val2) return nullptr; in FoldAndOfICmps()
1794 Value *Val = LHS->getOperand(0), *Val2 = RHS->getOperand(0); in FoldOrOfICmps() local
1802 A = Val2; in FoldOrOfICmps()
1803 else if (RHSCC == ICmpInst::ICMP_UGT && Val == Val2) in FoldOrOfICmps()
1809 B = Val2; in FoldOrOfICmps()
1810 if (LHSCC == ICmpInst::ICMP_ULT && Val2 == LHS->getOperand(1)) in FoldOrOfICmps()
1812 else if (LHSCC == ICmpInst::ICMP_UGT && Val2 == Val) in FoldOrOfICmps()
1835 Value *NewOr = Builder->CreateOr(Val, Val2); in FoldOrOfICmps()
1844 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps()
1851 if (Val != Val2) return nullptr; in FoldOrOfICmps()