projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad7d52
)
agx: Use agx_first_instr
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Tue, 29 Aug 2023 21:01:43 +0000
(17:01 -0400)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 5 Sep 2023 18:50:34 +0000
(18:50 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
src/asahi/compiler/agx_opt_empty_else.c
patch
|
blob
|
history
diff --git
a/src/asahi/compiler/agx_opt_empty_else.c
b/src/asahi/compiler/agx_opt_empty_else.c
index
653782b
..
fc0ac54
100644
(file)
--- a/
src/asahi/compiler/agx_opt_empty_else.c
+++ b/
src/asahi/compiler/agx_opt_empty_else.c
@@
-92,9
+92,7
@@
agx_opt_empty_else(agx_context *ctx)
{
agx_foreach_block(ctx, blk) {
if (match_block(blk)) {
- agx_instr *else_instr =
- list_first_entry(&blk->instructions, agx_instr, link);
-
+ agx_instr *else_instr = agx_first_instr(blk);
assert(state_for_instr(else_instr) == STATE_ELSE && "block matched");
agx_remove_instruction(else_instr);