freedreno/afuc: Use left recursion in parser

Otherwise we'll run out of stack space with many instructions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26771>
This commit is contained in:
Connor Abbott 2023-12-18 17:27:05 -05:00 committed by Marge Bot
parent c1955a0b16
commit 46681d64f6

View file

@ -184,7 +184,7 @@ label(const char *str)
%%
instrs: instr_or_label instrs
instrs: instrs instr_or_label
| instr_or_label
instr_or_label: instr_r