[llvm] [LoopFusion] Fix sink instructions (PR #147501)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 22:17:42 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)) {
----------------
kasuga-fj wrote:
Just to confirm, have you noticed this comment?
https://github.com/llvm/llvm-project/pull/147501
More information about the llvm-commits
mailing list