hotspot/src/share/vm/opto/coalesce.cpp
changeset 1057 44220ef9a775
parent 1 489c9b5090e2
child 1217 5eb97f366a6a
--- a/hotspot/src/share/vm/opto/coalesce.cpp	Thu Aug 14 10:15:29 2008 -0700
+++ b/hotspot/src/share/vm/opto/coalesce.cpp	Mon Aug 18 23:17:51 2008 -0700
@@ -604,8 +604,8 @@
   // If both are single def, then src_def powers one live range
   // and def_copy powers the other.  After merging, src_def powers
   // the combined live range.
-  lrgs(lr1)._def = (lrgs(lr1)._def == NodeSentinel ||
-                        lrgs(lr2)._def == NodeSentinel )
+  lrgs(lr1)._def = (lrgs(lr1).is_multidef() ||
+                        lrgs(lr2).is_multidef() )
     ? NodeSentinel : src_def;
   lrgs(lr2)._def = NULL;    // No def for lrg 2
   lrgs(lr2).Clear();        // Force empty mask for LRG 2