[llvm] [LoopFusion] Fix sink instructions (PR #147501)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 06:39:59 PDT 2025
================
@@ -1176,6 +1176,27 @@ struct LoopFuser {
return true;
}
+ // This function fixes sunk PHI nodes after fusion.
+ void fixPHINodes(SmallVector<Instruction *, 4> &SafeToSink,
----------------
madhur13490 wrote:
It is a private member function of struct `LoopFuser`. Thus, the visibility is already restricted. Users can't call it from outside even without object.
I can either have `static` or `const` qualifier (which I already have) but not both. So, I should be removing `const` qualifier...
https://github.com/llvm/llvm-project/pull/147501
More information about the llvm-commits
mailing list