ir3: Set CAN_SPECULATE before opt_preamble
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 30 Jun 2023 13:46:45 +0000 (09:46 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 13:51:00 +0000 (13:51 +0000)
commitbfb3eacad3358afef2e982d19742bdd55a0d9a6b
tree1b2089c75756e45b6a380d4631f833ab7736a270
parent3325b4778af74af218899c25413ad0c14e98cf5a
ir3: Set CAN_SPECULATE before opt_preamble

Speculating these loads is safe, but nir_opt_preamble doesn't know that. Set the
ACCESS bits appropriately to let it know.

This will avoid any code gen regression from the nir_opt_preamble change.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24011>
src/freedreno/ir3/ir3_nir_opt_preamble.c