Skip to content

Commit 4356dbe

Browse files
committed
graph util: doc switches
1 parent 8123e01 commit 4356dbe

File tree

1 file changed

+3
-3
lines changed
  • compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util

1 file changed

+3
-3
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util/GraphUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,11 +1474,11 @@ public static boolean assertIsConstant(ValueNode n) {
14741474
* successor statements.
14751475
*
14761476
* An example would be case statements of a Switch. The illustrative example below is for a
1477-
* switch control split node.
1477+
* switch control split node. However, we perform the same transformation also for if nodes.
14781478
*
14791479
* <p>
1480-
* This transformation is only applied to patterns where the same code is executed after each
1481-
* case, such as the following example:
1480+
* This transformation is only applied to patterns where the same code prefix is executed after
1481+
* each case, such as the following example:
14821482
*
14831483
* <pre>
14841484
* public static int switchReducePattern(int a) {

0 commit comments

Comments
 (0)