projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec0e547
)
Check for divide by zero.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 21 Oct 2011 06:26:01 +0000
(06:26 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 21 Oct 2011 06:26:01 +0000
(06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142640
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/release/findRegressions.py
patch
|
blob
|
history
diff --git
a/utils/release/findRegressions.py
b/utils/release/findRegressions.py
index 7629c8b4fbf1d2d6f8881270171ee2ec04361477..d3811a53b70725ca654b543b71bd139314a62651 100755
(executable)
--- 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 :