Lines Matching refs:RHS0
1319 Value *RHS0 = RHS->getOperand(0), *RHS1 = RHS->getOperand(1); in matchIsFiniteTest() local
1323 !matchUnorderedInfCompare(PredR, RHS0, RHS1)) in matchIsFiniteTest()
1331 return Builder.CreateFCmp(FCmpInst::getOrderedPredicate(PredR), RHS0, RHS1); in matchIsFiniteTest()
1337 Value *RHS0 = RHS->getOperand(0), *RHS1 = RHS->getOperand(1); in foldLogicOfFCmps() local
1340 if (LHS0 == RHS1 && RHS0 == LHS1) { in foldLogicOfFCmps()
1343 std::swap(RHS0, RHS1); in foldLogicOfFCmps()
1360 if (LHS0 == RHS0 && LHS1 == RHS1) { in foldLogicOfFCmps()
1380 if (LHS0->getType() != RHS0->getType()) in foldLogicOfFCmps()
1389 return Builder.CreateFCmp(PredL, LHS0, RHS0); in foldLogicOfFCmps()
1392 if (IsAnd && stripSignOnlyFPOps(LHS0) == stripSignOnlyFPOps(RHS0)) { in foldLogicOfFCmps()
1408 fcmpToClassTest(PredR, *RHS->getFunction(), RHS0, RHS1); in foldLogicOfFCmps()
3105 Value *RHS0 = RHS->getOperand(0); in foldAndOrOfICmpEqConstantAndICmp() local
3128 Other = RHS0; in foldAndOrOfICmpEqConstantAndICmp()
3129 else if (RPred == ICmpInst::ICMP_UGT && MatchRHSOp(RHS0)) in foldAndOrOfICmpEqConstantAndICmp()
3158 Value *LHS0 = LHS->getOperand(0), *RHS0 = RHS->getOperand(0); in foldAndOrOfICmps() local
3167 if (LHS0 == RHS1 && LHS1 == RHS0) { in foldAndOrOfICmps()
3171 if (LHS0 == RHS0 && LHS1 == RHS1) { in foldAndOrOfICmps()
3249 LHS0->getType() == RHS0->getType()) { in foldAndOrOfICmps()
3250 Value *NewOr = Builder.CreateOr(LHS0, RHS0); in foldAndOrOfICmps()
3259 LHS0->getType() == RHS0->getType()) { in foldAndOrOfICmps()
3260 Value *NewAnd = Builder.CreateAnd(LHS0, RHS0); in foldAndOrOfICmps()
3280 if (match(RHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps()
3285 match(RHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps()
3318 match(RHS0, m_c_And(m_Specific(X), m_Specific(Y)))) || in foldAndOrOfICmps()
3321 match(RHS0, m_c_Or(m_Specific(X), m_Specific(Y))))) { in foldAndOrOfICmps()
3328 match(RHS0, m_c_Or(m_Specific(X), m_Specific(Y)))) || in foldAndOrOfICmps()
3331 match(RHS0, m_c_And(m_Specific(X), m_Specific(Y))))) { in foldAndOrOfICmps()
3977 Value *RHS0 = RHS->getOperand(0), *RHS1 = RHS->getOperand(1); in foldXorOfICmps() local
3980 if (LHS0 == RHS1 && LHS1 == RHS0) { in foldXorOfICmps()
3984 if (LHS0 == RHS0 && LHS1 == RHS1) { in foldXorOfICmps()
3997 LHS0->getType() == RHS0->getType() && in foldXorOfICmps()
4008 Value *XorLR = Builder.CreateXor(LHS0, RHS0); in foldXorOfICmps()
4015 if (LHS0 == RHS0) { in foldXorOfICmps()