# HG changeset patch # User Doug Simon # Date 1386962204 -3600 # Node ID 5e94b8c9e9d0ce03af013437c1f17f028c946f73 # Parent c258331fdde695fa20cc11a899b9a342ae696e1d added comment explaining insertion of nop during commoning of constant loads diff -r c258331fdde6 -r 5e94b8c9e9d0 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/LIRGenerator.java --- 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 instructions = lir.lir(load.block); instructions.set(load.index, new NoOp(null, -1)); load.index = -1;