nak: Handle annotations in legalization

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31665>
This commit is contained in:
Faith Ekstrand 2024-10-11 11:17:45 -05:00 committed by Marge Bot
parent 36d9d11882
commit 03a393d6ca

View file

@ -293,6 +293,10 @@ fn legalize_instr(
) {
// Handle a few no-op cases up-front
match &instr.op {
Op::Annotate(_) => {
// OpAnnotate does nothing. There's nothing to legalize.
return;
}
Op::Undef(_)
| Op::PhiSrcs(_)
| Op::PhiDsts(_)