Fix -freg-graphs for FP and AARch64 NCG (#24941).
It seems we reserve 8 registers instead of four for global regs based on the layout in Note [AArch64 Register assignments]. I'm not sure it's neccesary, but for now we just accept this state of affairs and simple update -fregs-graph to account for this. (cherry picked from commit 3f89ab92)
Showing
- compiler/GHC/CmmToAsm/AArch64/Instr.hs 4 additions, 0 deletionscompiler/GHC/CmmToAsm/AArch64/Instr.hs
- compiler/GHC/CmmToAsm/AArch64/Ppr.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/AArch64/Ppr.hs
- compiler/GHC/CmmToAsm/AArch64/Regs.hs 1 addition, 0 deletionscompiler/GHC/CmmToAsm/AArch64/Regs.hs
- compiler/GHC/CmmToAsm/Reg/Graph/TrivColorable.hs 2 additions, 1 deletioncompiler/GHC/CmmToAsm/Reg/Graph/TrivColorable.hs
- docs/users_guide/9.8.3-notes.rst 12 additions, 0 deletionsdocs/users_guide/9.8.3-notes.rst
- testsuite/tests/codeGen/should_gen_asm/T24941.hs 23 additions, 0 deletionstestsuite/tests/codeGen/should_gen_asm/T24941.hs
- testsuite/tests/codeGen/should_gen_asm/all.T 2 additions, 0 deletionstestsuite/tests/codeGen/should_gen_asm/all.T
Please register or sign in to comment