EVALUATION
http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/f88fb2fa90cf
|
|
|
EVALUATION
http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/33e2b8f1d466
|
|
|
EVALUATION
http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/f88fb2fa90cf
|
|
|
EVALUATION
http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/33e2b8f1d466
|
|
|
SUGGESTED FIX
Such optimization could be done only for boolean X.
src/share/vm/opto/subnode.cpp Fri May 27 17:41:21 2011 -0700
@@ -1101,6 +1101,7 @@
if( cmp2_type == TypeInt::ZERO &&
cmp1_op == Op_XorI &&
j_xor->in(1) != j_xor && // An xor of itself is dead
+ phase->type( j_xor->in(1) ) == TypeInt::BOOL &&
phase->type( j_xor->in(2) ) == TypeInt::ONE &&
(_test._test == BoolTest::eq ||
_test._test == BoolTest::ne) ) {
|
|
|
EVALUATION
Incorrect Ideal optimization cmp(xor(X,1),0).
|
|
|
EVALUATION
Looks more like a Hotspot problem than a javac problem. Reassigning.
|
|
|