comment wibble
authorBen.Lippmeier@anu.edu.au <unknown>
Fri, 24 Aug 2007 16:03:14 +0000 (16:03 +0000)
committerBen.Lippmeier@anu.edu.au <unknown>
Fri, 24 Aug 2007 16:03:14 +0000 (16:03 +0000)
compiler/nativeGen/PprMach.hs
compiler/nativeGen/RegAllocInfo.hs

index a2ae0e3..3cdce1d 100644 (file)
@@ -1227,17 +1227,6 @@ pprSizeRegRegReg name size reg1 reg2 reg3
 
 #if i386_TARGET_ARCH || x86_64_TARGET_ARCH
 
-{-                                                                     -- BUGS: changed for coloring allocator
-pprInstr v@(MOV size s@(OpReg src) d@(OpReg dst)) -- hack              -- write a pass for this and patch linear allocator with it
-  | src == dst
-  =
-#if 0 /* #ifdef DEBUG */
-    (<>) (ptext SLIT("# warning: ")) (pprSizeOpOp SLIT("mov") size s d)
-#else
-    empty
-#endif
--}
-
 pprInstr (SPILL reg slot)
    = hcat [
        ptext SLIT("\tSPILL"),
index 9b60fb9..f27d879 100644 (file)
@@ -775,14 +775,12 @@ isRegRegMove _ = Nothing
 -- Generating spill instructions
 
 mkSpillInstr
-   :: Reg              -- register to spill (should be a real)
+   :: Reg              -- register to spill
    -> Int              -- current stack delta
    -> Int              -- spill slot to use
    -> Instr
 mkSpillInstr reg delta slot
- -- = ASSERT(isRealReg reg)                    -- BUGS: used for graph coloring: is this ok?
-  = let        
-        off     = spillSlotToOffset slot
+  = let        off     = spillSlotToOffset slot
     in
 #ifdef alpha_TARGET_ARCH
     {-Alpha: spill below the stack pointer (?)-}
@@ -820,14 +818,12 @@ mkSpillInstr reg delta slot
 
 
 mkLoadInstr
-   :: Reg              -- register to load (should be a real)
+   :: Reg              -- register to load
    -> Int              -- current stack delta
    -> Int              -- spill slot to use
    -> Instr
 mkLoadInstr reg delta slot
- -- = ASSERT(isRealReg reg)                    -- BUGS: used for graph coloring: is this ok?
-  = let
-        off     = spillSlotToOffset slot
+  = let off     = spillSlotToOffset slot
     in
 #if alpha_TARGET_ARCH
         LD  sz dyn (spRel (- (off `div` 8)))