[llvm] [LoopFusion] Fix sink instructions (PR #147501)

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 04:59:21 PDT 2025


================
@@ -1176,6 +1176,27 @@ struct LoopFuser {
     return true;
   }
 
+  // This function fixes sunk PHI nodes after fusion.
+  void fixPHINodes(SmallVector<Instruction *, 4> &SafeToSink,
----------------
Meinersbur wrote:

The other way around: The function does not use `this`, so why should it be tied to an object?

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


More information about the llvm-commits mailing list