Currently C2 often generats redundant tests against null:
decode_heap_oop R11,R10
testl R10, R10 # compressed ptr
jeq B75 P=0.000001 C=-1.000000
decode_heap_oop also contains a test of R10 that's not exposed to the optimizer.
|