src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.loop/src/org/graalvm/compiler/loop/LoopFragmentWhole.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
62 |
62 |
63 @Override |
63 @Override |
64 public NodeBitMap nodes() { |
64 public NodeBitMap nodes() { |
65 if (nodes == null) { |
65 if (nodes == null) { |
66 Loop<Block> loop = loop().loop(); |
66 Loop<Block> loop = loop().loop(); |
67 nodes = LoopFragment.computeNodes(graph(), LoopFragment.toHirBlocks(loop.getBlocks()), LoopFragment.toHirBlocks(loop.getLoopExits())); |
67 NodeBitMap loopNodes = graph().createNodeBitMap(); |
|
68 LoopFragment.computeNodes(loopNodes, graph(), loop(), LoopFragment.toHirBlocks(loop.getBlocks()), LoopFragment.toHirBlocks(loop.getLoopExits())); |
|
69 nodes = loopNodes; |
68 } |
70 } |
69 return nodes; |
71 return nodes; |
70 } |
72 } |
71 |
73 |
72 @Override |
74 @Override |
108 // nothing to do |
110 // nothing to do |
109 } |
111 } |
110 |
112 |
111 @Override |
113 @Override |
112 public void insertBefore(LoopEx loop) { |
114 public void insertBefore(LoopEx loop) { |
113 // TODO Auto-generated method stub |
115 // nothing to do |
114 |
|
115 } |
116 } |
116 } |
117 } |