Mercurial > hg > truffle
comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/TailDuplicationPhase.java @ 18993:480bd3b1adcd
Rename BeginNode => AbstractBeginNode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 28 Jan 2015 00:50:31 +0100 |
parents | ff232ff8d028 |
children | a2cb19764970 |
comparison
equal
deleted
inserted
replaced
18992:b1c03c2bfa40 | 18993:480bd3b1adcd |
---|---|
296 | 296 |
297 // re-wire the duplicated ValueAnchorNode to the predecessor of the corresponding | 297 // re-wire the duplicated ValueAnchorNode to the predecessor of the corresponding |
298 // EndNode | 298 // EndNode |
299 FixedWithNextNode anchorDuplicate = (FixedWithNextNode) duplicates.get(anchor); | 299 FixedWithNextNode anchorDuplicate = (FixedWithNextNode) duplicates.get(anchor); |
300 // move dependencies on the ValueAnchorNode to the previous BeginNode | 300 // move dependencies on the ValueAnchorNode to the previous BeginNode |
301 BeginNode prevBegin = BeginNode.prevBegin(forwardEnd); | 301 AbstractBeginNode prevBegin = AbstractBeginNode.prevBegin(forwardEnd); |
302 anchorDuplicate.replaceAtUsages(InputType.Guard, prevBegin); | 302 anchorDuplicate.replaceAtUsages(InputType.Guard, prevBegin); |
303 anchorDuplicate.replaceAtUsages(InputType.Anchor, prevBegin); | 303 anchorDuplicate.replaceAtUsages(InputType.Anchor, prevBegin); |
304 assert anchorDuplicate.hasNoUsages(); | 304 assert anchorDuplicate.hasNoUsages(); |
305 | 305 |
306 FixedNode next = anchorDuplicate.next(); | 306 FixedNode next = anchorDuplicate.next(); |