Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2827:bd17ac598c6e
Graph cloning, initial version (not completely working)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 May 2011 18:46:57 +0200 |
parents | b003ea36fa12 |
children | 775c31be565c bfce42cd9c07 |
comparison
equal
deleted
inserted
replaced
2821:015be60afcf3 | 2827:bd17ac598c6e |
---|---|
157 } | 157 } |
158 | 158 |
159 private void buildGraph() { | 159 private void buildGraph() { |
160 // Graph builder must set the startBlock and the osrEntryBlock | 160 // Graph builder must set the startBlock and the osrEntryBlock |
161 new GraphBuilder(compilation, this, compilation.graph).build(); | 161 new GraphBuilder(compilation, this, compilation.graph).build(); |
162 | |
163 // Graph newGraph = new Graph(); | |
164 // HashMap<Node, Node> replacement = new HashMap<Node, Node>(); | |
165 // replacement.put(compilation.graph.start(), newGraph.start()); | |
166 // replacement.put(compilation.graph.end(), newGraph.end()); | |
167 // newGraph.addDuplicate(compilation.graph.getNodes(), replacement); | |
168 // | |
169 // compilation.graph = newGraph; | |
170 | |
162 verifyAndPrint("After graph building"); | 171 verifyAndPrint("After graph building"); |
163 | 172 |
164 if (C1XOptions.PrintCompilation) { | 173 if (C1XOptions.PrintCompilation) { |
165 TTY.print(String.format("%3d blocks | ", this.numberOfBlocks())); | 174 TTY.print(String.format("%3d blocks | ", this.numberOfBlocks())); |
166 } | 175 } |