[llvm] [LoopFusion] Fix sink instructions (PR #147501)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 05:32:58 PDT 2025
================
@@ -988,8 +988,8 @@ struct LoopFuser {
// If it is not safe to hoist/sink all instructions in the
// pre-header, we cannot fuse these loops.
- if (!collectMovablePreheaderInsts(*FC0, *FC1, SafeToHoist,
- SafeToSink)) {
+ if (!collectAndFixMovablePreheaderInsts(*FC0, *FC1, SafeToHoist,
+ SafeToSink)) {
----------------
madhur13490 wrote:
Yeah, I understand. Had this in `performFusion()` initially, but optimized to move to collect* routine, which is an not right. Point taken.
https://github.com/llvm/llvm-project/pull/147501
More information about the llvm-commits
mailing list