src/share/vm/opto/connode.cpp

changeset 1430
ddd6f1182ae3
parent 1279
bd02caa94611
child 1907
c18cbe5936b8
child 1930
3657cb01ffc5
     1.1 --- a/src/share/vm/opto/connode.cpp	Wed Sep 23 23:57:44 2009 -0700
     1.2 +++ b/src/share/vm/opto/connode.cpp	Fri Sep 25 13:26:02 2009 -0700
     1.3 @@ -1085,6 +1085,9 @@
     1.4    switch (op) {
     1.5    case Op_SubX:
     1.6      x = in(1)->in(1);
     1.7 +    // Avoid ideal transformations ping-pong between this and AddP for raw pointers.
     1.8 +    if (phase->find_intptr_t_con(x, -1) == 0)
     1.9 +      break;
    1.10      y = in(1)->in(2);
    1.11      if (fits_in_int(phase->type(y), true)) {
    1.12        return addP_of_X2P(phase, x, y, true);

mercurial