Skip to content

Commit c60648d

Browse files
committed
add intact API to counted loop
1 parent 8584593 commit c60648d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/CountedLoopInfo.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ protected CountedLoopInfo(Loop loop, InductionVariable limitCheckedIV, IfNode if
150150
this.unsigned = unsigned;
151151
}
152152

153+
/**
154+
* See {@link InductionVariable#intact()}
155+
*/
156+
public boolean intact() {
157+
return limitCheckedIV.intact() && limit.isAlive() && body.isAlive() && ifNode.isAlive();
158+
}
159+
153160
/**
154161
* Returns the induction variable compared against the limit node. For a loop like
155162
*

0 commit comments

Comments
 (0)