src/share/vm/opto/subnode.cpp

changeset 2940
33e2b8f1d466
parent 2870
f1d6640088a1
child 3407
35acf8f0a2e4
     1.1 --- a/src/share/vm/opto/subnode.cpp	Fri May 27 12:47:48 2011 -0700
     1.2 +++ b/src/share/vm/opto/subnode.cpp	Tue May 31 10:05:36 2011 -0700
     1.3 @@ -1101,6 +1101,7 @@
     1.4    if( cmp2_type == TypeInt::ZERO &&
     1.5        cmp1_op == Op_XorI &&
     1.6        j_xor->in(1) != j_xor &&          // An xor of itself is dead
     1.7 +      phase->type( j_xor->in(1) ) == TypeInt::BOOL &&
     1.8        phase->type( j_xor->in(2) ) == TypeInt::ONE &&
     1.9        (_test._test == BoolTest::eq ||
    1.10         _test._test == BoolTest::ne) ) {

mercurial