diff src/share/vm/opto/gcm.cpp @ 788:1851e1fb420e

6843752: missing code for an anti-dependent Phi in GCM Summary: Don't place a load below anti-dependent PHI. Reviewed-by: never, twisti
author kvn
date Wed, 27 May 2009 12:35:51 -0700
parents fbde8ec322d0
children acba6af809c8
line wrap: on
line diff
--- a/src/share/vm/opto/gcm.cpp	Thu May 21 10:05:36 2009 -0700
+++ b/src/share/vm/opto/gcm.cpp	Wed May 27 12:35:51 2009 -0700
@@ -617,6 +617,9 @@
             assert(!LCA_orig->dominates(pred_block) ||
                    early->dominates(pred_block), "early is high enough");
             must_raise_LCA = true;
+          } else {
+            // anti-dependent upon PHI pinned below 'early', no edge needed
+            LCA = early;             // but can not schedule below 'early'
           }
         }
       }