summaryrefslogtreecommitdiff
path: root/utils/release
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-21 06:26:01 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-21 06:26:01 +0000
commit3df9f541a093614b62e49bfa3c0a9529f36d11db (patch)
tree75aa78be22242ebfeade7d8127f982621d418391 /utils/release
parentec0e5475fdb9d7d3a4d8206d84f469bc83be1cf1 (diff)
downloadllvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.tar.gz
llvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.tar.bz2
llvm-3df9f541a093614b62e49bfa3c0a9529f36d11db.tar.xz
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-xutils/release/findRegressions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/release/findRegressions.py b/utils/release/findRegressions.py
index 7629c8b4fb..d3811a53b7 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 :