agx: Add forward optimizing pass for fmov
Explain the ideas behind our SSA-based optimizer (inspired by ACO's, thank you to Daniel Schuermann for discussing this with me in the context of Bifrost), and implement the subset needed to propagate abs/neg through. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10582>
This commit is contained in:

committed by
Alyssa Rosenzweig

parent
e50bae00f4
commit
28801b4849
@@ -547,6 +547,7 @@ agx_builder_insert(agx_cursor *cursor, agx_instr *I)
|
||||
void agx_print_instr(agx_instr *I, FILE *fp);
|
||||
void agx_print_block(agx_block *block, FILE *fp);
|
||||
void agx_print_shader(agx_context *ctx, FILE *fp);
|
||||
void agx_optimizer(agx_context *ctx);
|
||||
void agx_ra(agx_context *ctx);
|
||||
void agx_pack(agx_context *ctx, struct util_dynarray *emission);
|
||||
|
||||
|
Reference in New Issue
Block a user