Skip to content
Snippets Groups Projects
Commit dc7bccdb authored by Rhys Perry's avatar Rhys Perry Committed by Eric Engestrom
Browse files

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: default avatarRhys Perry <pendingchaos02@gmail.com>
Reviewed-by: default avatarDaniel 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)
parent 565a14d7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment