broadcom/compiler: Add a constant folding pass after nir_lower_io
authorArcady Goldmints-Orlov <agoldmints@igalia.com>
Sat, 25 Jul 2020 15:39:31 +0000 (10:39 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 20:14:14 +0000 (20:14 +0000)
commitc3258f927c462cc2e24106e7841138452f7fec10
treecd81a19a1687542c42208fc266f2db2de802ae4d
parentbd87cdad18138d36c6d9aca61270ffd2ddfd81e5
broadcom/compiler: Add a constant folding pass after nir_lower_io

The nir_lower_io pass produces a bunch of constant arithmetic, and
assumes that constant folding will simplify it away.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6356>
src/broadcom/compiler/vir.c