summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/X86/Instr.hs
diff options
context:
space:
mode:
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>2019-01-26 00:26:02 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-02-08 11:00:15 -0500
commit03b7abc19c8b0ec5c606cc2da208d2d004807fe9 (patch)
treee1d779fee191e71aafba557e6e4680d4d6aab60f /compiler/nativeGen/X86/Instr.hs
parent2b90356d26b4699227816ad9424e766eccdb6c36 (diff)
downloadhaskell-03b7abc19c8b0ec5c606cc2da208d2d004807fe9.tar.gz
Allow resizing the stack for the graph allocator.
The graph allocator now dynamically resizes the number of stack slots when running into the limit. This fixes #8657. Also loop membership of basic blocks is now available in the register allocator for cost heuristics.
Diffstat (limited to 'compiler/nativeGen/X86/Instr.hs')
-rw-r--r--compiler/nativeGen/X86/Instr.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/nativeGen/X86/Instr.hs b/compiler/nativeGen/X86/Instr.hs
index 5e790e481e..4717ec10d6 100644
--- a/compiler/nativeGen/X86/Instr.hs
+++ b/compiler/nativeGen/X86/Instr.hs
@@ -1063,6 +1063,8 @@ is_G_instr instr
-- Otherwise, we would repeat the $rsp adjustment for each branch to
-- L.
--
+-- Returns a list of (L,Lnew) pairs.
+--
allocMoreStack
:: Platform
-> Int