intel/compiler: Use assume() instead of assert() for array bounds.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 16 Mar 2021 20:02:42 +0000 (21:02 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 03:47:23 +0000 (03:47 +0000)
commiteb378e4cd03820764f89dcc72f01714f5b40f809
tree568d8cc67e105e322f3a0d2f93f71aacb51840f0
parent84f91dfea517720c98ed4612c207b5f75f0c0d59
intel/compiler: Use assume() instead of assert() for array bounds.

This should make both GCC and clang happy and make them believe that
the array bounds are not exceeded.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9634>
src/intel/compiler/brw_inst.h