Lines Matching refs:FCmpInst
43 static unsigned getFCmpCode(FCmpInst::Predicate CC, bool &isOrdered) { in getFCmpCode()
46 case FCmpInst::FCMP_ORD: isOrdered = true; return 0; // 000 in getFCmpCode()
47 case FCmpInst::FCMP_UNO: return 0; // 000 in getFCmpCode()
48 case FCmpInst::FCMP_OGT: isOrdered = true; return 1; // 001 in getFCmpCode()
49 case FCmpInst::FCMP_UGT: return 1; // 001 in getFCmpCode()
50 case FCmpInst::FCMP_OEQ: isOrdered = true; return 2; // 010 in getFCmpCode()
51 case FCmpInst::FCMP_UEQ: return 2; // 010 in getFCmpCode()
52 case FCmpInst::FCMP_OGE: isOrdered = true; return 3; // 011 in getFCmpCode()
53 case FCmpInst::FCMP_UGE: return 3; // 011 in getFCmpCode()
54 case FCmpInst::FCMP_OLT: isOrdered = true; return 4; // 100 in getFCmpCode()
55 case FCmpInst::FCMP_ULT: return 4; // 100 in getFCmpCode()
56 case FCmpInst::FCMP_ONE: isOrdered = true; return 5; // 101 in getFCmpCode()
57 case FCmpInst::FCMP_UNE: return 5; // 101 in getFCmpCode()
58 case FCmpInst::FCMP_OLE: isOrdered = true; return 6; // 110 in getFCmpCode()
59 case FCmpInst::FCMP_ULE: return 6; // 110 in getFCmpCode()
88 case 0: Pred = isordered ? FCmpInst::FCMP_ORD : FCmpInst::FCMP_UNO; break; in getFCmpValue()
89 case 1: Pred = isordered ? FCmpInst::FCMP_OGT : FCmpInst::FCMP_UGT; break; in getFCmpValue()
90 case 2: Pred = isordered ? FCmpInst::FCMP_OEQ : FCmpInst::FCMP_UEQ; break; in getFCmpValue()
91 case 3: Pred = isordered ? FCmpInst::FCMP_OGE : FCmpInst::FCMP_UGE; break; in getFCmpValue()
92 case 4: Pred = isordered ? FCmpInst::FCMP_OLT : FCmpInst::FCMP_ULT; break; in getFCmpValue()
93 case 5: Pred = isordered ? FCmpInst::FCMP_ONE : FCmpInst::FCMP_UNE; break; in getFCmpValue()
94 case 6: Pred = isordered ? FCmpInst::FCMP_OLE : FCmpInst::FCMP_ULE; break; in getFCmpValue()
97 Pred = FCmpInst::FCMP_ORD; break; in getFCmpValue()
1128 Value *InstCombiner::FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS) { in FoldAndOfFCmps()
1129 if (LHS->getPredicate() == FCmpInst::FCMP_ORD && in FoldAndOfFCmps()
1130 RHS->getPredicate() == FCmpInst::FCMP_ORD) { in FoldAndOfFCmps()
1154 FCmpInst::Predicate Op0CC = LHS->getPredicate(), Op1CC = RHS->getPredicate(); in FoldAndOfFCmps()
1159 Op1CC = FCmpInst::getSwappedPredicate(Op1CC); in FoldAndOfFCmps()
1166 return Builder->CreateFCmp((FCmpInst::Predicate)Op0CC, Op0LHS, Op0RHS); in FoldAndOfFCmps()
1167 if (Op0CC == FCmpInst::FCMP_FALSE || Op1CC == FCmpInst::FCMP_FALSE) in FoldAndOfFCmps()
1169 if (Op0CC == FCmpInst::FCMP_TRUE) in FoldAndOfFCmps()
1171 if (Op1CC == FCmpInst::FCMP_TRUE) in FoldAndOfFCmps()
1442 if (FCmpInst *LHS = dyn_cast<FCmpInst>(I.getOperand(0))) in visitAnd()
1443 if (FCmpInst *RHS = dyn_cast<FCmpInst>(I.getOperand(1))) in visitAnd()
1473 if (FCmpInst *RHS = dyn_cast<FCmpInst>(Op1COp)) in visitAnd()
1474 if (FCmpInst *LHS = dyn_cast<FCmpInst>(Op0COp)) in visitAnd()
2025 Value *InstCombiner::FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS) { in FoldOrOfFCmps()
2026 if (LHS->getPredicate() == FCmpInst::FCMP_UNO && in FoldOrOfFCmps()
2027 RHS->getPredicate() == FCmpInst::FCMP_UNO && in FoldOrOfFCmps()
2052 FCmpInst::Predicate Op0CC = LHS->getPredicate(), Op1CC = RHS->getPredicate(); in FoldOrOfFCmps()
2056 Op1CC = FCmpInst::getSwappedPredicate(Op1CC); in FoldOrOfFCmps()
2062 return Builder->CreateFCmp((FCmpInst::Predicate)Op0CC, Op0LHS, Op0RHS); in FoldOrOfFCmps()
2063 if (Op0CC == FCmpInst::FCMP_TRUE || Op1CC == FCmpInst::FCMP_TRUE) in FoldOrOfFCmps()
2065 if (Op0CC == FCmpInst::FCMP_FALSE) in FoldOrOfFCmps()
2067 if (Op1CC == FCmpInst::FCMP_FALSE) in FoldOrOfFCmps()
2454 if (FCmpInst *LHS = dyn_cast<FCmpInst>(I.getOperand(0))) in visitOr()
2455 if (FCmpInst *RHS = dyn_cast<FCmpInst>(I.getOperand(1))) in visitOr()
2486 if (FCmpInst *RHS = dyn_cast<FCmpInst>(Op1COp)) in visitOr()
2487 if (FCmpInst *LHS = dyn_cast<FCmpInst>(Op0COp)) in visitOr()