Allow resizing the stack for the graph allocator.
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Fri, 25 Jan 2019 23:26:02 +0000 (00:26 +0100)
committerBen Gamari <ben@smart-cactus.org>
Wed, 20 Feb 2019 19:28:55 +0000 (14:28 -0500)
commit2eeabfdb48228e4f17a54cdf74a497c6259cc982
tree3f4283b2581f56b4ad95965f9efb17f09180c661
parentac37ab795fbe7a07894ce1d6b0fe9863c0e29135
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.

(cherry picked from commit 03b7abc19c8b0ec5c606cc2da208d2d004807fe9)
compiler/nativeGen/AsmCodeGen.hs
compiler/nativeGen/CFG.hs
compiler/nativeGen/RegAlloc/Graph/Main.hs
compiler/nativeGen/RegAlloc/Graph/Spill.hs
compiler/nativeGen/RegAlloc/Graph/SpillCost.hs
compiler/nativeGen/X86/Instr.hs