comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2684:ed36daed4c43

Add new option PrintIdealGraphToFile and another printer/observer pair to generate a graph representation that can be visualized and inspected with the ideal graph visualizer
author Peter Hofer <peter.hofer@jku.at>
date Mon, 16 May 2011 17:31:53 +0200
parents e0e89714e2f1
children 785e9ecdcc69 7b7dbe19fafb
comparison
equal deleted inserted replaced
2683:026b21a81651 2684:ed36daed4c43
148 } 148 }
149 149
150 // 1. create the start block 150 // 1. create the start block
151 ir.startBlock = new BlockBegin(0, ir.nextBlockNumber(), graph); 151 ir.startBlock = new BlockBegin(0, ir.nextBlockNumber(), graph);
152 BlockBegin startBlock = ir.startBlock; 152 BlockBegin startBlock = ir.startBlock;
153 // graph.root().setStart(startBlock); 153 graph.root().setStart(startBlock);
154 154
155 // 2. compute the block map, setup exception handlers and get the entrypoint(s) 155 // 2. compute the block map, setup exception handlers and get the entrypoint(s)
156 BlockMap blockMap = compilation.getBlockMap(rootMethod); 156 BlockMap blockMap = compilation.getBlockMap(rootMethod);
157 157
158 blockList = new BlockBegin[rootMethod.code().length]; 158 blockList = new BlockBegin[rootMethod.code().length];