Lines Matching refs:FCmpInst
1324 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1329 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1336 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1338 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1340 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1342 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1344 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1346 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1349 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1353 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
1354 if (SwappedRelation != FCmpInst::BAD_FCMP_PREDICATE) in evaluateFCmpRelation()
1355 return FCmpInst::getSwappedPredicate(SwappedRelation); in evaluateFCmpRelation()
1373 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1663 if (pred == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1666 if (pred == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1747 case FCmpInst::FCMP_FALSE: return Constant::getNullValue(ResultTy); in ConstantFoldCompareInstruction()
1748 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
1749 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1751 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1753 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1756 case FCmpInst::FCMP_OEQ: in ConstantFoldCompareInstruction()
1758 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1760 case FCmpInst::FCMP_ONE: in ConstantFoldCompareInstruction()
1763 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1766 case FCmpInst::FCMP_OLT: in ConstantFoldCompareInstruction()
1768 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1771 case FCmpInst::FCMP_OGT: in ConstantFoldCompareInstruction()
1773 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1775 case FCmpInst::FCMP_OLE: in ConstantFoldCompareInstruction()
1778 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1780 case FCmpInst::FCMP_OGE: in ConstantFoldCompareInstruction()
1809 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1810 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1811 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1812 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1813 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1814 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1815 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1816 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1817 case FCmpInst::FCMP_TRUE: in ConstantFoldCompareInstruction()
1818 case FCmpInst::FCMP_FALSE: in ConstantFoldCompareInstruction()
1819 case FCmpInst::BAD_FCMP_PREDICATE: in ConstantFoldCompareInstruction()
1821 case FCmpInst::FCMP_OEQ: // We know that C1 == C2 in ConstantFoldCompareInstruction()
1822 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1823 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1824 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1826 case FCmpInst::FCMP_OLT: // We know that C1 < C2 in ConstantFoldCompareInstruction()
1827 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1828 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
1829 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
1831 case FCmpInst::FCMP_OGT: // We know that C1 > C2 in ConstantFoldCompareInstruction()
1832 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1833 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
1834 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1836 case FCmpInst::FCMP_OLE: // We know that C1 <= C2 in ConstantFoldCompareInstruction()
1838 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1840 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1843 case FCmpInst::FCMP_OGE: // We known that C1 >= C2 in ConstantFoldCompareInstruction()
1845 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1847 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1850 case FCmpInst::FCMP_ONE: // We know that C1 != C2 in ConstantFoldCompareInstruction()
1852 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1854 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()