changeset 9041:7e0a4478e80f

8087128: C2: Disallow definition split on MachCopySpill nodes Reviewed-by: kvn
author neliasso
date Thu, 14 Feb 2019 14:31:32 +0100
parents b290489738b8
children 9f614da5f371
files src/share/vm/opto/reg_split.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/reg_split.cpp	Fri Jun 15 08:28:08 2018 -0700
+++ b/src/share/vm/opto/reg_split.cpp	Thu Feb 14 14:31:32 2019 +0100
@@ -1171,9 +1171,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