[llvm] [AMDGPU] Generate waterfall for calls with SGPR(inreg) argument (PR #146997)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 08:17:54 PDT 2025
================
@@ -7331,6 +7367,14 @@ void SIInstrInfo::moveToVALU(SIInstrWorklist &Worklist,
assert(Worklist.empty() &&
"Deferred MachineInstr are not supposed to re-populate worklist");
}
+
+ for (auto &Entry : Worklist.WaterFalls) {
+ createWaterFall(Entry.first, MDT, Entry.second.MOs, Entry.second.SGPRs);
+ }
+
+ for (auto &Entry : Worklist.V2PhySCopiesToErase)
+ if (Entry.second == true)
+ Entry.first->eraseFromParent();
----------------
shiltian wrote:
No auto. Use structure binding instead.
https://github.com/llvm/llvm-project/pull/146997
More information about the llvm-commits
mailing list