Fix isKnownNeverInfOrNaN() call in AMDGPU after ORE removal 97b5cc214aee48e30391bfcd2...
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 2 Jun 2023 07:32:46 +0000 (09:32 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 2 Jun 2023 07:32:46 +0000 (09:32 +0200)
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

index 56a43d7..50a8f93 100644 (file)
@@ -345,11 +345,11 @@ bool GCNTTIImpl::canSimplifyLegacyMulToMul(const Instruction &I,
 
   auto *TLI = &IC.getTargetLibraryInfo();
   if (isKnownNeverInfOrNaN(Op0, IC.getDataLayout(), TLI, 0,
-                           &IC.getAssumptionCache(), &I, &IC.getDominatorTree(),
-                           &IC.getOptimizationRemarkEmitter()) &&
+                           &IC.getAssumptionCache(), &I,
+                           &IC.getDominatorTree()) &&
       isKnownNeverInfOrNaN(Op1, IC.getDataLayout(), TLI, 0,
-                           &IC.getAssumptionCache(), &I, &IC.getDominatorTree(),
-                           &IC.getOptimizationRemarkEmitter())) {
+                           &IC.getAssumptionCache(), &I,
+                           &IC.getDominatorTree())) {
     // Neither operand is infinity or NaN.
     return true;
   }