X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAlloc%2FGraph%2FSpillClean.hs;fp=compiler%2FnativeGen%2FRegAlloc%2FGraph%2FSpillClean.hs;h=15fbb59e34c339a46c39e051b2d6546eb6f66081;hb=388e3356f71daffa62f1d4157e1e07e4c68f218a;hp=b7b7475aec0cca200fcc5cb6a334e3a3e1be8c03;hpb=c173e8d155ca61ec53224c39d8cb936ddcc5dbda;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegAlloc/Graph/SpillClean.hs b/compiler/nativeGen/RegAlloc/Graph/SpillClean.hs index b7b7475..15fbb59 100644 --- a/compiler/nativeGen/RegAlloc/Graph/SpillClean.hs +++ b/compiler/nativeGen/RegAlloc/Graph/SpillClean.hs @@ -436,15 +436,15 @@ isStoreReg ss instance Uniquable Store where getUnique (SReg r) | RegReal (RealRegSingle i) <- r - = mkUnique 'R' i + = mkRegSingleUnique i | RegReal (RealRegPair r1 r2) <- r - = mkUnique 'P' (r1 * 65535 + r2) + = mkRegPairUnique (r1 * 65535 + r2) | otherwise = error "RegSpillClean.getUnique: found virtual reg during spill clean, only real regs expected." - getUnique (SSlot i) = mkUnique 'S' i + getUnique (SSlot i) = mkRegSubUnique i -- [SLPJ] I hope "SubUnique" is ok instance Outputable Store where ppr (SSlot i) = text "slot" <> int i