diff graal/GraalCompiler/src/com/sun/c1x/debug/BlockPrinter.java @ 2546:e1b3db8031ee

Removed liveness marking.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 21:54:31 +0200
parents 16b9a8b5ad39
children 274360f98f97
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/debug/BlockPrinter.java	Wed Apr 27 21:38:22 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/debug/BlockPrinter.java	Wed Apr 27 21:54:31 2011 +0200
@@ -29,19 +29,15 @@
 
 /**
  * Prints a listing for a {@linkplain BlockBegin block}.
- *
- * @author Doug Simon
  */
 public class BlockPrinter implements BlockClosure {
 
     private final InstructionPrinter ip;
     private final boolean cfgOnly;
-    private final boolean liveOnly;
 
-    public BlockPrinter(IR ir, InstructionPrinter ip, boolean cfgOnly, boolean liveOnly) {
+    public BlockPrinter(IR ir, InstructionPrinter ip, boolean cfgOnly) {
         this.ip = ip;
         this.cfgOnly = cfgOnly;
-        this.liveOnly = liveOnly;
     }
 
     public void apply(BlockBegin block) {
@@ -49,11 +45,11 @@
             ip.printInstruction(block);
             ip.out().println();
         } else {
-            printBlock(block, liveOnly);
+            printBlock(block);
         }
     }
 
-    public void printBlock(BlockBegin block, boolean liveOnly) {
+    public void printBlock(BlockBegin block) {
         ip.printInstruction(block);
         LogStream out = ip.out();
         out.println();
@@ -65,9 +61,7 @@
         ip.printInstructionListingHeader();
 
         for (Instruction i = block.next(); i != null; i = i.next()) {
-            if (!liveOnly || i.isLive()) {
-                ip.printInstructionListing(i);
-            }
+            ip.printInstructionListing(i);
         }
         out.println();