comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinterObserver.java @ 2781:bda5972a40a5

remove unnecessary BlockBegin nodes in frontend
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 24 May 2011 15:31:52 +0200
parents 16b9a8b5ad39
children d3fc4fe063bf
comparison
equal deleted inserted replaced
2776:398b8fa5dc81 2781:bda5972a40a5
23 package com.sun.c1x.debug; 23 package com.sun.c1x.debug;
24 24
25 import java.io.*; 25 import java.io.*;
26 26
27 import com.sun.c1x.*; 27 import com.sun.c1x.*;
28 import com.sun.c1x.ir.*;
28 import com.sun.c1x.observer.*; 29 import com.sun.c1x.observer.*;
29 import com.sun.cri.ri.*; 30 import com.sun.cri.ri.*;
30 31
31 /** 32 /**
32 * Observes compilation events and uses {@link CFGPrinter} to produce a control flow graph for the <a 33 * Observes compilation events and uses {@link CFGPrinter} to produce a control flow graph for the <a
72 cfgPrinter.printCFG(event.getMethod(), event.getBlockMap(), event.getCodeSize(), label, event.isHIRValid(), event.isLIRValid()); 73 cfgPrinter.printCFG(event.getMethod(), event.getBlockMap(), event.getCodeSize(), label, event.isHIRValid(), event.isLIRValid());
73 cfgprinted = true; 74 cfgprinted = true;
74 } 75 }
75 76
76 if (event.getStartBlock() != null) { 77 if (event.getStartBlock() != null) {
77 cfgPrinter.printCFG(event.getStartBlock(), label, event.isHIRValid(), event.isLIRValid()); 78 cfgPrinter.printCFG((BlockBegin) event.getStartBlock(), label, event.isHIRValid(), event.isLIRValid());
78 cfgprinted = true; 79 cfgprinted = true;
79 } 80 }
80 81
81 if (event.getTargetMethod() != null) { 82 if (event.getTargetMethod() != null) {
82 if (cfgprinted) { 83 if (cfgprinted) {