[llvm] [FuncSpec] Query SCCPSolver in more places (PR #114964)

Hari Limaye via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 04:11:43 PST 2024


================
@@ -135,15 +137,18 @@ Cost InstCostVisitor::estimateBasicBlocks(
     // executable and only reachable from dead blocks.
     for (BasicBlock *SuccBB : successors(BB))
       if (isBlockExecutable(SuccBB) &&
-          canEliminateSuccessor(BB, SuccBB, DeadBlocks))
+          canEliminateSuccessor(BB, SuccBB, DeadBlocks, Solver))
         WorkList.push_back(SuccBB);
   }
   return CodeSize;
 }
 
-static Constant *findConstantFor(Value *V, ConstMap &KnownConstants) {
+static Constant *findConstantFor(Value *V, ConstMap &KnownConstants,
----------------
hazzlim wrote:

Good point - done.

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


More information about the llvm-commits mailing list