Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/loopnode.cpp @ 8868:30f42e691e70
8004640: C2 assert failure in memnode.cpp: NULL+offs not RAW address
Summary: always transform AddP nodes in IdealKit by calling _gvn.transform().
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Tue, 26 Mar 2013 12:55:26 -0700 |
parents | 8b3da8d14c93 |
children | f2110083203d |
line wrap: on
line diff
--- a/src/share/vm/opto/loopnode.cpp Tue Mar 26 10:05:33 2013 +0100 +++ b/src/share/vm/opto/loopnode.cpp Tue Mar 26 12:55:26 2013 -0700 @@ -2251,6 +2251,11 @@ return; } + // clear out the dead code after build_loop_late + while (_deadlist.size()) { + _igvn.remove_globally_dead_node(_deadlist.pop()); + } + if (stop_early) { assert(do_expensive_nodes, "why are we here?"); if (process_expensive_nodes()) { @@ -2260,9 +2265,7 @@ // nodes again. C->set_major_progress(); } - _igvn.optimize(); - return; } @@ -2273,11 +2276,6 @@ eliminate_useless_predicates(); } - // clear out the dead code - while(_deadlist.size()) { - _igvn.remove_globally_dead_node(_deadlist.pop()); - } - #ifndef PRODUCT C->verify_graph_edges(); if (_verify_me) { // Nested verify pass?