X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAllocColor.hs;h=d5ec7af8ebd84d90e780fa46f84fd91e7d9ece94;hb=f2eb50cc42d4ce9e27c2328016b1ddbc2abab04c;hp=5a3401f1fdeb8cea5f6d32134a007af9b9dc0c90;hpb=682d5e9674ec8cf94b3af815a752fa03c9a9d6fe;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegAllocColor.hs b/compiler/nativeGen/RegAllocColor.hs index 5a3401f..d5ec7af 100644 --- a/compiler/nativeGen/RegAllocColor.hs +++ b/compiler/nativeGen/RegAllocColor.hs @@ -125,7 +125,8 @@ regAlloc_spin dump (spinCount :: Int) triv regsFree slotsFree debug_codeGraphs c { raGraph = graph_colored , raPatched = code_patched , raSpillClean = code_spillclean - , raFinal = code_final } + , raFinal = code_final + , raSRMs = foldl addSRM (0, 0, 0) $ map countSRMs code_spillclean } return ( code_final , if dump