summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-11-25 18:55:28 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-11-26 16:00:35 -0500
commit3e3555cc9c2a9f5246895f151259fd2a81621f38 (patch)
tree2951b6023b52d4f10e48c9d0be2b38fc4d74dd66
parentd9c8b5b472b6e7c4bd5a2b7eeda2bef711db9239 (diff)
downloadhaskell-3e3555cc9c2a9f5246895f151259fd2a81621f38.tar.gz
RegAlloc: Add missing raPlatformfield to RegAllocStatsSpill
Fixes #18994 Co-Author: Benjamin Maurer <maurer.benjamin@gmail.com>
-rw-r--r--compiler/GHC/CmmToAsm/Reg/Graph.hs3
-rw-r--r--compiler/GHC/CmmToAsm/Reg/Graph/Stats.hs6
2 files changed, 7 insertions, 2 deletions
diff --git a/compiler/GHC/CmmToAsm/Reg/Graph.hs b/compiler/GHC/CmmToAsm/Reg/Graph.hs
index b8b1e48efb..9cbe12caee 100644
--- a/compiler/GHC/CmmToAsm/Reg/Graph.hs
+++ b/compiler/GHC/CmmToAsm/Reg/Graph.hs
@@ -283,7 +283,8 @@ regAlloc_spin config spinCount triv regsFree slotsFree slotsCount debug_codeGrap
, raCoalesced = rmCoalesce
, raSpillStats = spillStats
, raSpillCosts = spillCosts
- , raSpilled = code_spilled }
+ , raSpilled = code_spilled
+ , raPlatform = platform }
-- Bundle up all the register allocator statistics.
-- .. but make sure to drop them on the floor if they're not
diff --git a/compiler/GHC/CmmToAsm/Reg/Graph/Stats.hs b/compiler/GHC/CmmToAsm/Reg/Graph/Stats.hs
index 534c6f0bbb..6b883f53eb 100644
--- a/compiler/GHC/CmmToAsm/Reg/Graph/Stats.hs
+++ b/compiler/GHC/CmmToAsm/Reg/Graph/Stats.hs
@@ -79,7 +79,11 @@ data RegAllocStats statics instr
, raSpillCosts :: SpillCostInfo
-- | Code with spill instructions added.
- , raSpilled :: [LiveCmmDecl statics instr] }
+ , raSpilled :: [LiveCmmDecl statics instr]
+
+ -- | Target platform
+ , raPlatform :: !Platform
+ }
-- a successful coloring