Skip to content
Snippets Groups Projects
Commit 3e649922 authored by mc2zk's avatar mc2zk
Browse files

Corrected ratio calculation for fixed_calls

Former-commit-id: e44c33441f0bb6e3edbc737a674c272c4e05d198
parent 27c3ae5d
No related branches found
No related tags found
No related merge requests found
......@@ -852,8 +852,9 @@ void fix_all_calls(FileIR_t* firp, bool print_stats, bool fix_all)
cout << "# ATTRIBUTE fix_calls::fixed_calls="<<std::dec<<fixed_calls<<endl;
cout << "# ATTRIBUTE fix_calls::no_fix_needed_calls="<<std::dec<<not_fixed_calls<<endl;
cout << "# ATTRIBUTE fix_calls::other_instructions="<<std::dec<<not_calls<<endl;
cout << "# ATTRIBUTE fix_calls::fixed_ratio="<<std::fixed<<(fixed_calls/((float)(not_fixed_calls+fixed_calls)))<<endl;
cout << "# ATTRIBUTE fix_calls::remaining_ratio="<<std::fixed<<(not_fixed_calls/((float)(not_fixed_calls+fixed_calls+not_calls)))<<endl;
cout << "# ATTRIBUTE fix_calls::fixed_ratio="<<std::fixed<<(((float)fixed_calls)/((float)(not_fixed_calls+fixed_calls+not_calls)))<<endl;
cout << "# ATTRIBUTE fix_calls::remaining_ratio="<<std::fixed<<((float)not_fixed_calls/((float)(not_fixed_calls+fixed_calls+not_calls)))<<endl;
cout << "# ATTRIBUTE fix_calls::other_insts_ratio="<<std::fixed<<((float)not_calls/((float)(not_fixed_calls+fixed_calls+not_calls)))<<endl;
cout << "# ATTRIBUTE fix_calls::no_target_insn="<<std::dec<< no_target_insn << endl;
cout << "# ATTRIBUTE fix_calls::no_fallthrough_insn="<<std::dec<< no_fallthrough_insn << endl;
cout << "# ATTRIBUTE fix_calls::target_not_in_function="<<std::dec<< target_not_in_function << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment