[commit: ghc] wip/ppc-reg-alloc: PPC NCG: Use liveness information in CmmCall (9758dca)
git at git.haskell.org
git at git.haskell.org
Thu Feb 28 02:14:54 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/ppc-reg-alloc
Link : http://ghc.haskell.org/trac/ghc/changeset/9758dcadac31f9c9a0b4e84acaaabdc8c99fcdf1/ghc
>---------------------------------------------------------------
commit 9758dcadac31f9c9a0b4e84acaaabdc8c99fcdf1
Author: Peter Trommler <ptrommler at acm.org>
Date: Tue Dec 11 16:43:49 2018 +0100
PPC NCG: Use liveness information in CmmCall
We make liveness information for global registers
available on `JMP` and `BCTR`, which were the last instructions
missing. With complete liveness information we do not need to
reserve global registers in `freeReg` anymore and moreover
assign R9 and R10 and HpLim to callee save registers. We change
the calling convention so R1 to R10 occupy a contiguous range
of registers.
Cleanup by removing `Reg_Su`, which was unused, from `freeReg`
and removing unused register definitions.
The calculation of the number of floating point registers is too
conservative. Just follow X86 and specify the constants directly.
Overall this results in 0.3 % smaller code size in nofib while
runtime is sligtly better in some tests.
>---------------------------------------------------------------
9758dcadac31f9c9a0b4e84acaaabdc8c99fcdf1
compiler/nativeGen/PPC/CodeGen.hs | 40 +++++++++++++---------
compiler/nativeGen/PPC/Instr.hs | 35 +++++++++++--------
compiler/nativeGen/PPC/Ppr.hs | 4 +--
compiler/nativeGen/PPC/Regs.hs | 12 +++----
includes/CodeGen.Platform.hs | 72 ---------------------------------------
includes/stg/MachRegs.h | 13 ++++---
6 files changed, 57 insertions(+), 119 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 9758dcadac31f9c9a0b4e84acaaabdc8c99fcdf1
More information about the ghc-commits
mailing list