changeset 13328:5e94b8c9e9d0

added comment explaining insertion of nop during commoning of constant loads
author Doug Simon <doug.simon@oracle.com>
date Fri, 13 Dec 2013 20:16:44 +0100
parents c258331fdde6
children 5d47d69d523a
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java	Fri Dec 13 14:41:59 2013 +0100
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java	Fri Dec 13 20:16:44 2013 +0100
@@ -257,6 +257,8 @@
                         loadedValue = load.variable;
                         if (dominator != load.block) {
                             if (load.index >= 0) {
+                                // Replace the move with a filler op so that the operation
+                                // list does not need to be adjusted.
                                 List<LIRInstruction> instructions = lir.lir(load.block);
                                 instructions.set(load.index, new NoOp(null, -1));
                                 load.index = -1;