[llvm] [Utils] Fix incorrect LCSSA PHI nodes when splitting critical edges with MergeIdenticalEdges (PR #131744)
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Mar 19 09:12:23 PDT 2025
    
    
  
================
@@ -288,7 +293,11 @@ llvm::SplitKnownCriticalEdge(Instruction *TI, unsigned SuccNum,
 
         // Update LCSSA form in the newly created exit block.
         if (Options.PreserveLCSSA) {
-          createPHIsForSplitLoopExit(TIBB, NewBB, DestBB);
+          // If > 1 identical edges to be splitted, we need to introduce 
----------------
nikic wrote:
```suggestion
          // If > 1 identical edges to be split, we need to introduce 
```
https://github.com/llvm/llvm-project/pull/131744
    
    
More information about the llvm-commits
mailing list