freedreno/ir3: fix crash when no non-input instructions