summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2022-01-13 13:50:48 -0800
committerIan Romanick <ian.d.romanick@intel.com>2022-01-13 14:06:04 -0800
commit022d89099e1ab95cd5ef026a0c348e89b832c88e (patch)
tree3271d9bddbf4a63159db62f18b4f5b7ce6c0ffa8
parent0a52d5419839485e11213c0f408f0dacbcb5906e (diff)
anv-report: Handle loops changing to or from zero
Premature optimization is the root of all evil. :( Shaders that had loops change to or from zero were not logged has having loops changed and were not counted in the total. Unfortunately, those are among the most important (and most common) cases of the loops changing. Fixes: 5a1df48 ("Add a script for comparing fossil results")
-rwxr-xr-xanv-report-fossil.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/anv-report-fossil.py b/anv-report-fossil.py
index 91e7b0a..7996aaf 100755
--- a/anv-report-fossil.py
+++ b/anv-report-fossil.py
@@ -131,9 +131,6 @@ class Report:
def _include(self, name: str, member: Diff, d0: typing.Optional[int],
d1: typing.Optional[int]) -> None:
- if not (d0 and d1):
- return
-
if d0 > d1:
member.helped[name] = ProgramDiff(name, d0, d1)
elif d0 < d1: