@@ -111,7 +111,7 @@ ConstantFPRange ConstantFPRange::getNonNaN(const fltSemantics &Sem) {
111
111
// / Return [-inf, V) or [-inf, V]
112
112
static ConstantFPRange makeLessThan (APFloat V, FCmpInst::Predicate Pred) {
113
113
const fltSemantics &Sem = V.getSemantics ();
114
- if (!(Pred & FCmpInst::FCMP_OEQ )) {
114
+ if (FCmpInst::isFalseWhenEqual ( FCmpInst::getOrderedPredicate (Pred) )) {
115
115
if (V.isNegInfinity ())
116
116
return ConstantFPRange::getEmpty (Sem);
117
117
V.next (/* nextDown=*/ true );
@@ -123,7 +123,7 @@ static ConstantFPRange makeLessThan(APFloat V, FCmpInst::Predicate Pred) {
123
123
// / Return (V, +inf] or [V, +inf]
124
124
static ConstantFPRange makeGreaterThan (APFloat V, FCmpInst::Predicate Pred) {
125
125
const fltSemantics &Sem = V.getSemantics ();
126
- if (!(Pred & FCmpInst::FCMP_OEQ )) {
126
+ if (FCmpInst::isFalseWhenEqual ( FCmpInst::getOrderedPredicate (Pred) )) {
127
127
if (V.isPosInfinity ())
128
128
return ConstantFPRange::getEmpty (Sem);
129
129
V.next (/* nextDown=*/ false );
@@ -135,7 +135,7 @@ static ConstantFPRange makeGreaterThan(APFloat V, FCmpInst::Predicate Pred) {
135
135
// / Make sure that +0/-0 are both included in the range.
136
136
static ConstantFPRange extendZeroIfEqual (const ConstantFPRange &CR,
137
137
FCmpInst::Predicate Pred) {
138
- if (!(Pred & FCmpInst::FCMP_OEQ ))
138
+ if (FCmpInst::isFalseWhenEqual ( FCmpInst::getOrderedPredicate (Pred) ))
139
139
return CR;
140
140
141
141
APFloat Lower = CR.getLower ();
0 commit comments