[llvm] [ConstantFPRange] Implement `ConstantFPRange::makeAllowedFCmpRegion` (PR #110082)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 01:15:59 PDT 2024


================
@@ -112,7 +112,7 @@ ConstantFPRange ConstantFPRange::getNonNaN(const fltSemantics &Sem) {
 /// Return [-inf, V) or [-inf, V]
 static ConstantFPRange makeLessThan(APFloat V, FCmpInst::Predicate Pred) {
   const fltSemantics &Sem = V.getSemantics();
-  if (!(Pred & FCmpInst::FCMP_OEQ)) {
+  if (FCmpInst::isFalseWhenEqual(FCmpInst::getOrderedPredicate(Pred))) {
----------------
dtcxzyw wrote:

Done.

https://github.com/llvm/llvm-project/pull/110082


More information about the llvm-commits mailing list