update_stats() reported stats_sf_detected for both the "detected" and
"avoided" counters. The second should report stats_sf_avoided.
gcc/ChangeLog:
* avoid-store-forwarding.cc
(store_forwarding_analyzer::update_stats): Use stats_sf_avoided
for the "avoided" counter.
Reviewed-By: Konstantinos Eleftheriou <konstantinos.eleftheriou@vrull.eu>
statistics_counter_event (fn, "Cases of store forwarding detected: ",
stats_sf_detected);
statistics_counter_event (fn, "Cases of store forwarding avoided: ",
- stats_sf_detected);
+ stats_sf_avoided);
}
unsigned int