Mercurial > hg > graal-compiler
diff src/share/vm/adlc/formssel.cpp @ 11002:7fa25f5575c9
8016157: During CTW: C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block
Summary: Disable rematerialization for negD node
Reviewed-by: kvn, roland
author | adlertz |
---|---|
date | Fri, 14 Jun 2013 01:19:56 +0200 |
parents | f15fe46d8c00 |
children | c9ccd7b85f20 |
line wrap: on
line diff
--- a/src/share/vm/adlc/formssel.cpp Thu Jun 13 15:39:47 2013 -0400 +++ b/src/share/vm/adlc/formssel.cpp Fri Jun 14 01:19:56 2013 +0200 @@ -235,6 +235,9 @@ return false; } +bool InstructForm::is_ideal_negD() const { + return (_matrule && _matrule->_rChild && strcmp(_matrule->_rChild->_opType, "NegD") == 0); +} // Return 'true' if this instruction matches an ideal 'Copy*' node int InstructForm::is_ideal_copy() const { @@ -533,6 +536,12 @@ if( data_type != Form::none ) rematerialize = true; + // Ugly: until a better fix is implemented, disable rematerialization for + // negD nodes because they are proved to be problematic. + if (is_ideal_negD()) { + return false; + } + // Constants if( _components.count() == 1 && _components[0]->is(Component::USE_DEF) ) rematerialize = true;