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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 03:15:17 PST 2024


================
@@ -312,10 +317,10 @@ bool InstCostVisitor::discoverTransitivelyIncomingValues(
 
       // Disregard self-references and dead incoming values.
       if (auto *Inst = dyn_cast<Instruction>(V))
-        if (Inst == PN || DeadBlocks.contains(PN->getIncomingBlock(I)))
----------------
david-arm wrote:

Would that suggest a bug then? Is there a way for the solver InstCostVisitor to reuse the same code that finds a basic block dead?

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


More information about the llvm-commits mailing list