Mercurial > hg > graal-jvmci-8
changeset 11413:2c3ca4b71965
Add more javadoc to ConvertDeoptimizeToGuardPhase
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Sun, 25 Aug 2013 15:18:57 +0200 |
parents | 7a775592258f |
children | ec21e399e4be |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java Sun Aug 25 15:15:23 2013 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java Sun Aug 25 15:18:57 2013 +0200 @@ -34,6 +34,10 @@ * This phase will find branches which always end with a {@link DeoptimizeNode} and replace their * {@link ControlSplitNode ControlSplitNodes} with {@link FixedGuardNode FixedGuardNodes}. * + * This is useful because {@link FixedGuardNode FixedGuardNodes FixedGuardNodess} will be lowered to + * {@link GuardNode GuardNodes} which can later be optimized more aggressively than control-flow + * constructs. + * * This is currently only done for branches that start from a {@link IfNode}. If it encounters a * branch starting at an other kind of {@link ControlSplitNode}, it will only bring the * {@link DeoptimizeNode} as close to the {@link ControlSplitNode} as possible.