summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/RegAlloc/Linear
diff options
context:
space:
mode:
authorBartosz Nitka <niteria@gmail.com>2016-07-07 03:07:20 -0700
committerBartosz Nitka <niteria@gmail.com>2016-07-07 03:57:44 -0700
commit6ed7c4793fe1acd491646a8312afbbda6be1fd0b (patch)
tree206c1a844201486bfdbfdf9cdca7efe9f2ab7d52 /compiler/nativeGen/RegAlloc/Linear
parentbedd62037f588321312feaf16923fa04d443e3d8 (diff)
downloadhaskell-6ed7c4793fe1acd491646a8312afbbda6be1fd0b.tar.gz
Document some codegen nondeterminism
Bit-for-bit reproducible binaries are not a goal for now, so this is just marking places that could be a problem. Doing this will allow eltsUFM to be removed and will leave only nonDetEltsUFM. GHC Trac: #4012
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Linear')
-rw-r--r--compiler/nativeGen/RegAlloc/Linear/Stats.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/nativeGen/RegAlloc/Linear/Stats.hs b/compiler/nativeGen/RegAlloc/Linear/Stats.hs
index c55df6bee8..71dedaeb55 100644
--- a/compiler/nativeGen/RegAlloc/Linear/Stats.hs
+++ b/compiler/nativeGen/RegAlloc/Linear/Stats.hs
@@ -66,7 +66,8 @@ pprStats code statss
spillTotals = foldl' (zipWith (+))
[0, 0, 0, 0, 0]
- $ eltsUFM spills
+ $ nonDetEltsUFM spills
+ -- See Note [Unique Determinism and code generation]
-- count how many reg-reg-moves remain in the code
moves = sum $ map countRegRegMovesNat code