mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
agx: Run DCE twice
Needed to combine fsat with vectors due to nir_lower_blend changes. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21122>
This commit is contained in:
parent
cd8b5427c7
commit
e44a53f5dc
1 changed files with 4 additions and 0 deletions
|
|
@ -1894,8 +1894,12 @@ agx_compile_function_nir(nir_shader *nir, nir_function_impl *impl,
|
|||
agx_print_shader(ctx, stdout);
|
||||
|
||||
if (likely(!(agx_debug & AGX_DBG_NOOPT))) {
|
||||
/* Dead code eliminate before instruction combining so use counts are
|
||||
* right */
|
||||
agx_dce(ctx);
|
||||
agx_optimizer(ctx);
|
||||
agx_opt_cse(ctx);
|
||||
/* Dead code eliminate after instruction combining to get the benefit */
|
||||
agx_dce(ctx);
|
||||
agx_validate(ctx, "Optimization");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue