[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 07:55:31 PDT 2025


================
@@ -714,11 +714,12 @@ void SIFrameLowering::emitEntryFunctionPrologue(MachineFunction &MF,
     assert(hasFP(MF));
     Register FPReg = MFI->getFrameOffsetReg();
     assert(FPReg != AMDGPU::FP_REG);
-    unsigned VGPRSize =
-        llvm::alignTo((ST.getAddressableNumVGPRs() -
-                       AMDGPU::IsaInfo::getVGPRAllocGranule(&ST)) *
-                          4,
-                      FrameInfo.getMaxAlign());
+    unsigned VGPRSize = llvm::alignTo(
----------------
shiltian wrote:

This code format is sooo ugly but I understand it is what clang-format likes…

https://github.com/llvm/llvm-project/pull/133444


More information about the llvm-commits mailing list