[llvm] [LoopFusion] Fix sink instructions (PR #147501)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 04:05:46 PDT 2025
================
@@ -1176,6 +1176,27 @@ struct LoopFuser {
return true;
}
+ // This function fixes sunk PHI nodes after fusion.
----------------
Meinersbur wrote:
```suggestion
/// This function fixes sunk PHI nodes after fusion.
```
Could you explain a bit more? E.g.:
> Update the the PHI nodes that previously had incoming blocks from FC0 to the equivalent block fused in the fused loop (which is FC1 being reused, therefore the equivalent is not necessary for FC1).
https://github.com/llvm/llvm-project/pull/147501
More information about the llvm-commits
mailing list