533 bool rematerialize = false; |
533 bool rematerialize = false; |
534 |
534 |
535 Form::DataType data_type = is_chain_of_constant(globals); |
535 Form::DataType data_type = is_chain_of_constant(globals); |
536 if( data_type != Form::none ) |
536 if( data_type != Form::none ) |
537 rematerialize = true; |
537 rematerialize = true; |
538 |
|
539 // Ugly: until a better fix is implemented, disable rematerialization for |
|
540 // negD nodes because they are proved to be problematic. |
|
541 if (is_ideal_negD()) { |
|
542 return false; |
|
543 } |
|
544 |
538 |
545 // Constants |
539 // Constants |
546 if( _components.count() == 1 && _components[0]->is(Component::USE_DEF) ) |
540 if( _components.count() == 1 && _components[0]->is(Component::USE_DEF) ) |
547 rematerialize = true; |
541 rematerialize = true; |
548 |
542 |