[llvm] 0930ee8 - [SimplifyLibCalls] Fix isKnownNeverInfinity() call after ORE removal

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 2 00:21:41 PDT 2023


Author: Nikita Popov
Date: 2023-06-02T09:20:57+02:00
New Revision: 0930ee8e86effd60764eab03842be90a9fbbb422

URL: https://github.com/llvm/llvm-project/commit/0930ee8e86effd60764eab03842be90a9fbbb422
DIFF: https://github.com/llvm/llvm-project/commit/0930ee8e86effd60764eab03842be90a9fbbb422.diff

LOG: [SimplifyLibCalls] Fix isKnownNeverInfinity() call after ORE removal

Missed this in 97b5cc214aee48e30391bfcd2cde4252163d7406.

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 220f0b271d81..978dbd78b75e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -2179,7 +2179,7 @@ Value *LibCallSimplifier::replacePowWithSqrt(CallInst *Pow, IRBuilderBase &B) {
   // pow(-Inf, 0.5) is optionally required to have a result of +Inf (not setting
   // errno), but sqrt(-Inf) is required by various standards to set errno.
   if (!Pow->doesNotAccessMemory() && !Pow->hasNoInfs() &&
-      !isKnownNeverInfinity(Base, DL, TLI, 0, AC, Pow, /*DT=*/nullptr, &ORE))
+      !isKnownNeverInfinity(Base, DL, TLI, 0, AC, Pow))
     return nullptr;
 
   Sqrt = getSqrtCall(Base, AttributeList(), Pow->doesNotAccessMemory(), Mod, B,


        


More information about the llvm-commits mailing list