Mercurial > hg > truffle
diff src/share/vm/opto/loopTransform.cpp @ 14435:da862781b584
Merge
author | kvn |
---|---|
date | Thu, 21 Nov 2013 12:30:35 -0800 |
parents | 2b8e28fdf503 94a83e0f9ce1 |
children | abec000618bf |
line wrap: on
line diff
--- a/src/share/vm/opto/loopTransform.cpp Wed Nov 20 11:08:09 2013 -0800 +++ b/src/share/vm/opto/loopTransform.cpp Thu Nov 21 12:30:35 2013 -0800 @@ -1964,7 +1964,7 @@ // Find loads off the surviving projection; remove their control edge for (DUIterator_Fast imax, i = dp->fast_outs(imax); i < imax; i++) { Node* cd = dp->fast_out(i); // Control-dependent node - if( cd->is_Load() ) { // Loads can now float around in the loop + if (cd->is_Load() && cd->depends_only_on_test()) { // Loads can now float around in the loop // Allow the load to float around in the loop, or before it // but NOT before the pre-loop. _igvn.replace_input_of(cd, 0, ctrl); // ctrl, not NULL