< prev index next >

src/share/vm/opto/ifnode.cpp

Print this page
rev 10293 : 8150720: Cleanup code around PrintOptoStatistics
Reviewed-by: TBD

*** 38,48 **** --- 38,50 ---- // Portions of code courtesy of Clifford Click // Optimization - Graph Style + #ifndef PRODUCT extern int explicit_null_checks_elided; + #endif //============================================================================= //------------------------------Value------------------------------------------ // Return a tuple for whichever arm of the IF is reachable const Type* IfNode::Value(PhaseGVN* phase) const {
*** 1518,1529 **** --- 1520,1533 ---- // Check that we did not follow a loop back to ourselves if( this == dom ) return NULL; + #ifndef PRODUCT if( dist > 2 ) // Add to count of NULL checks elided explicit_null_checks_elided++; + #endif return prev_dom; } //------------------------------Identity---------------------------------------
< prev index next >