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.
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/wasm32.h 35 additions, 0 deletionsrts/include/stg/MachRegs/wasm32.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
Please register or sign in to comment