Mercurial > hg > openjdk > hsx16
changeset 938:2c0279a08300
6883468: C2 compiler enters infinite loop in PhaseIterGVN::transform
Summary: Avoid ideal transformation ping-pong between AddPNode::Ideal() and CastX2PNode::Ideal().
Reviewed-by: cfang
author | kvn |
---|---|
date | Fri, 25 Sep 2009 13:21:41 -0700 |
parents | f324a7d7fd56 |
children | d19a5a05d449 |
files | src/share/vm/opto/connode.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/opto/connode.cpp Fri Sep 18 09:47:35 2009 -0700 +++ b/src/share/vm/opto/connode.cpp Fri Sep 25 13:21:41 2009 -0700 @@ -1085,6 +1085,9 @@ switch (op) { case Op_SubX: x = in(1)->in(1); + // Avoid ideal transformations ping-pong between this and AddP for raw pointers. + if (phase->find_intptr_t_con(x, -1) == 0) + break; y = in(1)->in(2); if (fits_in_int(phase->type(y), true)) { return addP_of_X2P(phase, x, y, true);