intel/perf: don't generate logically dead code
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 30 Jul 2020 13:33:09 +0000 (15:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 15:08:01 +0000 (15:08 +0000)
commit289cb6b59aea755ef5e60c711bb91d9f66b3c2af
tree09cc1465d4491c802884cc4d3da55188f32066e4
parent0789f4b6d857d3188412d33f47bf3aa1873e2187
intel/perf: don't generate logically dead code

When divisor is constant integer != 0 there's no point in checking
whether it's 0.

Complained about by Coverity.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>
src/intel/perf/gen_perf.py