diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-21 06:26:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-21 06:26:01 +0000 |
commit | 3df9f541a093614b62e49bfa3c0a9529f36d11db (patch) | |
tree | 75aa78be22242ebfeade7d8127f982621d418391 /utils/release | |
parent | ec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1 (diff) | |
download | external_llvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.zip external_llvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.tar.gz external_llvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.tar.bz2 |
Check for divide by zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/release')
-rwxr-xr-x | utils/release/findRegressions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/release/findRegressions.py b/utils/release/findRegressions.py index 7629c8b..d3811a5 100755 --- a/utils/release/findRegressions.py +++ b/utils/release/findRegressions.py @@ -105,8 +105,8 @@ def diffResults(d_old, d_new): elif not math.isnan(d_old[t][x]) and math.isnan(d_new[t][x]): print t + " *** REGRESSION (" + x + ")" - if d_new[t][x] > d_old[t][x] and \ - (d_new[t][x] - d_old[t][x]) / d_new[t][x] > .05: + if d_new[t][x] > d_old[t][x] and d_old[t][x] > 0.0 and \ + (d_new[t][x] - d_old[t][x]) / d_old[t][x] > .05: print t + " *** REGRESSION (" + x + ")" else : |