changeset 53752:e44c436f2447

8087128: C2: Disallow definition split on MachCopySpill nodes Reviewed-by: kvn
author neliasso
date Thu, 14 Feb 2019 14:31:32 +0100
parents 22c78a512937
children 0040f89feb78
files src/hotspot/share/opto/reg_split.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/opto/reg_split.cpp	Thu Feb 14 12:54:56 2019 +0100
+++ b/src/hotspot/share/opto/reg_split.cpp	Thu Feb 14 14:31:32 2019 +0100
@@ -1192,9 +1192,8 @@
               (deflrg._direct_conflict || deflrg._must_spill)) ||
              // Check for LRG being up in a register and we are inside a high
              // pressure area.  Spill it down immediately.
-             (defup && is_high_pressure(b,&deflrg,insidx))) ) {
+             (defup && is_high_pressure(b,&deflrg,insidx) && !n->is_SpillCopy())) ) {
           assert( !n->rematerialize(), "" );
-          assert( !n->is_SpillCopy(), "" );
           // Do a split at the def site.
           maxlrg = split_DEF( n, b, insidx, maxlrg, Reachblock, debug_defs, splits, slidx );
           // If it wasn't split bail