[llvm] [FuncSpec] Update function specialization to handle phi-chains (PR #71442)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 10:29:50 PST 2023


================
@@ -262,30 +267,86 @@ Cost InstCostVisitor::estimateBranchInst(BranchInst &I) {
   return estimateBasicBlocks(WorkList);
 }
 
+void InstCostVisitor::discoverStronglyConnectedComponent(PHINode *PN,
----------------
momchil-velikov wrote:

Would be nice to get some description of the algorithm. I've never seen such an algorithm for SCC and I'm not at all convinced it does what it says on the tin.

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


More information about the llvm-commits mailing list