[llvm] Split vgpr regalloc pipeline (PR #93526)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 04:55:31 PDT 2024
================
@@ -1555,6 +1555,17 @@ void SIFrameLowering::determinePrologEpilogSGPRSaves(
}
}
+// Mark all WWM VGPRs as BB LiveIns.
+static void addWwmRegBBLiveIn(MachineFunction &MF) {
+ SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
+ for (MachineBasicBlock &MBB : MF) {
+ for (auto &Reg : MFI->getWWMReservedRegs())
----------------
arsenm wrote:
```suggestion
for (Register Reg : MFI->getWWMReservedRegs())
```
https://github.com/llvm/llvm-project/pull/93526
More information about the llvm-commits
mailing list