intel/compiler: Calculate num_instructions in O(1) during register pressure calculation
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 13 Mar 2016 23:37:03 +0000 (16:37 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:21:13 +0000 (10:21 -0800)
commit70349a2252a95f181de519be61ea84bd22381e4b
treed61ec269082b13544972efac970e56eff7307971
parente5e4d016b94fc402c328d9a202504d811d2bb5ce
intel/compiler: Calculate num_instructions in O(1) during register pressure calculation

And mark the variable declaration as const.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
src/intel/compiler/brw_fs.cpp