rts: enable wasm32 register mapping
The wasm backend didn't properly make use of all Cmm global registers due to #24347. Now that it is fixed, this patch re-enables full register mapping for wasm32, and we can now generate smaller & faster wasm modules that doesn't always spill arguments onto the stack. Fixes #22460 #24152. (cherry picked from commit 0cda2b8b) (cherry picked from commit f1f5068b398b1effb837add38ecc5303dc9a381f)
Showing
- compiler/GHC/Platform/Wasm32.hs 2 additions, 3 deletionscompiler/GHC/Platform/Wasm32.hs
- rts/Apply.cmm 2 additions, 0 deletionsrts/Apply.cmm
- rts/HeapStackCheck.cmm 3 additions, 0 deletionsrts/HeapStackCheck.cmm
- rts/include/stg/MachRegs.h 2 additions, 1 deletionrts/include/stg/MachRegs.h
- rts/include/stg/MachRegsForHost.h 1 addition, 2 deletionsrts/include/stg/MachRegsForHost.h
- testsuite/tests/cmm/should_compile/all.T 0 additions, 1 deletiontestsuite/tests/cmm/should_compile/all.T