[PATCH] D149775: [AMDGPU] Reserve SGPR pair when long branches are present

Jeffrey Byrnes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 13:16:25 PDT 2023


jrbyrnes added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:1454
+    // Update reserved registers to include long branch ones
+    MRI.freezeReservedRegs(MF);
+  }
----------------
Will this ever be called directly after `freezeReservedRegs` for VGPRForAGPRCopy (i.e. on gfx908)? If so, in those cases, can we use `reserveReg` instead of the second `freezeReservedRegs`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149775/new/

https://reviews.llvm.org/D149775



More information about the llvm-commits mailing list