AsmCodeGen: Give linear-scan and coloring reg. allocators different cc names
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Sat, 6 Aug 2016 12:55:54 +0000 (12:55 +0000)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Sat, 6 Aug 2016 13:10:29 +0000 (13:10 +0000)
compiler/nativeGen/AsmCodeGen.hs

index 46c6fa4..24a9db9 100644 (file)
@@ -549,7 +549,7 @@ cmmNativeGen dflags this_mod modLoc ncgImpl us fileIds dbgMap cmm count
 
                 -- do the graph coloring register allocation
                 let ((alloced, regAllocStats), usAlloc)
-                        = {-# SCC "RegAlloc" #-}
+                        = {-# SCC "RegAlloc-color" #-}
                           initUs usLive
                           $ Color.regAlloc
                                 dflags
@@ -593,7 +593,7 @@ cmmNativeGen dflags this_mod modLoc ncgImpl us fileIds dbgMap cmm count
                            return (alloced', ra_stats )
 
                 let ((alloced, regAllocStats), usAlloc)
-                        = {-# SCC "RegAlloc" #-}
+                        = {-# SCC "RegAlloc-linear" #-}
                           initUs usLive
                           $ liftM unzip
                           $ mapM reg_alloc withLiveness