mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Fix division by zero problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6022ef463f
commit
2c1d7cf13b
@ -66,6 +66,11 @@ bool AAEval::runOnFunction(Function &F) {
|
||||
bool AAEval::doFinalization(Module &M) {
|
||||
unsigned Sum = No+May+Must;
|
||||
std::cerr << "===== Alias Analysis Evaluator Report =====\n";
|
||||
if (Sum == 0) {
|
||||
std::cerr << " Alias Analysis Evaluator Summary: No pointers!\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
std::cerr << " " << Sum << " Total Alias Queries Performed\n";
|
||||
std::cerr << " " << No << " no alias responses (" << No*100/Sum << "%)\n";
|
||||
std::cerr << " " << May << " may alias responses (" << May*100/Sum << "%)\n";
|
||||
|
Loading…
Reference in New Issue
Block a user