Lines Matching refs:FCmpInst
1343 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1348 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1355 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1357 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1359 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1361 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1363 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1365 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1368 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1372 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
1373 if (SwappedRelation != FCmpInst::BAD_FCMP_PREDICATE) in evaluateFCmpRelation()
1374 return FCmpInst::getSwappedPredicate(SwappedRelation); in evaluateFCmpRelation()
1392 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1686 if (pred == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1689 if (pred == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1770 case FCmpInst::FCMP_FALSE: return Constant::getNullValue(ResultTy); in ConstantFoldCompareInstruction()
1771 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
1772 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1774 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1776 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1779 case FCmpInst::FCMP_OEQ: in ConstantFoldCompareInstruction()
1781 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1783 case FCmpInst::FCMP_ONE: in ConstantFoldCompareInstruction()
1786 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1789 case FCmpInst::FCMP_OLT: in ConstantFoldCompareInstruction()
1791 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1794 case FCmpInst::FCMP_OGT: in ConstantFoldCompareInstruction()
1796 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1798 case FCmpInst::FCMP_OLE: in ConstantFoldCompareInstruction()
1801 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1803 case FCmpInst::FCMP_OGE: in ConstantFoldCompareInstruction()
1832 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1833 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1834 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1835 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1836 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1837 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1838 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1839 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1840 case FCmpInst::FCMP_TRUE: in ConstantFoldCompareInstruction()
1841 case FCmpInst::FCMP_FALSE: in ConstantFoldCompareInstruction()
1842 case FCmpInst::BAD_FCMP_PREDICATE: in ConstantFoldCompareInstruction()
1844 case FCmpInst::FCMP_OEQ: // We know that C1 == C2 in ConstantFoldCompareInstruction()
1845 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1846 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1847 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1849 case FCmpInst::FCMP_OLT: // We know that C1 < C2 in ConstantFoldCompareInstruction()
1850 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1851 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
1852 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
1854 case FCmpInst::FCMP_OGT: // We know that C1 > C2 in ConstantFoldCompareInstruction()
1855 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1856 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
1857 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1859 case FCmpInst::FCMP_OLE: // We know that C1 <= C2 in ConstantFoldCompareInstruction()
1861 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1863 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1866 case FCmpInst::FCMP_OGE: // We known that C1 >= C2 in ConstantFoldCompareInstruction()
1868 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1870 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1873 case FCmpInst::FCMP_ONE: // We know that C1 != C2 in ConstantFoldCompareInstruction()
1875 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1877 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()