Mercurial > hg > truffle
comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/walker/ComputeInliningRelevance.java @ 18997:2ccaaf5a6be4
Fix class comparison statements for BeginNode and MergeNode to reflect new class hierarchy.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 28 Jan 2015 01:11:25 +0100 |
parents | a2cb19764970 |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
18996:46c2e70d54ad | 18997:2ccaaf5a6be4 |
---|---|
112 } else if (current instanceof StartNode) { | 112 } else if (current instanceof StartNode) { |
113 // we're within the outermost scope | 113 // we're within the outermost scope |
114 parent = loops.get(null); | 114 parent = loops.get(null); |
115 break; | 115 break; |
116 } else { | 116 } else { |
117 assert current.getClass() == AbstractMergeNode.class : current; | 117 assert current instanceof MergeNode : current; |
118 // follow any path upwards - it doesn't matter which one | 118 // follow any path upwards - it doesn't matter which one |
119 current = ((AbstractMergeNode) current).forwardEndAt(0); | 119 current = ((AbstractMergeNode) current).forwardEndAt(0); |
120 } | 120 } |
121 } else if (current instanceof LoopExitNode) { | 121 } else if (current instanceof LoopExitNode) { |
122 // if we reach a loop exit then we follow this loop and have the same parent | 122 // if we reach a loop exit then we follow this loop and have the same parent |