intel/fs: Rework the loop of opt_combine_constants that collects constants
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 30 Jul 2020 02:10:55 +0000 (19:10 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Apr 2023 21:50:06 +0000 (21:50 +0000)
commit2016d9f46c6c009d8367c656e26239a2905e6c76
tree270e24e52bf1bb3993a85b035a8d089749aa9cf9
parent9e4bb4bfcfea46b9b9f96cb4723acb0d58a7f7b6
intel/fs: Rework the loop of opt_combine_constants that collects constants

This is a bit more wordy, but it will greatly simplify some future
changes.

v2: Rebase on ADD3 changes.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22274>
src/intel/compiler/brw_fs_combine_constants.cpp