aco: consider pseudo-instructions reading exec in needs_exec_mask()
No matter the format, this should return true if the instruction has an exec operand. Otherwise, eliminate_useless_exec_writes_in_block() could remove an exec write in a block if it's successor begins with: s2: %3737:s[8-9] = p_parallelcopy %0:exec s2: %0:exec, s1: %3738:scc = s_wqm_b64 %3737:s[8-9] Totals from 3 (0.00% of 150170) affected shaders (GFX10.3): CodeSize: 23184 -> 23204 (+0.09%) Instrs: 4143 -> 4148 (+0.12%) Latency: 98379 -> 98382 (+0.00%) Copies: 172 -> 175 (+1.74%) Branches: 95 -> 97 (+2.11%) Signed-off-by:Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Fixes: bc130497 ("aco: Eliminate useless exec writes in jump threading.") Closes: mesa/mesa#5620 Part-of: <mesa/mesa!13776> (cherry picked from commit d8946120)