Skip to content
Snippets Groups Projects
Commit 09ee9072 authored by Roy Spliet's avatar Roy Spliet Committed by Ilia Mirkin
Browse files

nv50/ir: Fold IMM into MAD


Add a specific optimisation pass for NV50 to check whether SRC0 or SRC1 is
a MOV dst, IMM. If so: fold the IMM in and try to drop the MOV. Must be
done post-RA because it requires that SDST == SSRC2.

V2: improve readability and add comments to clarify decisions
V3: Remove redundant code... compiler already attempts to put the IMM in
SSRC1

Signed-off-by: default avatarRoy Spliet <rspliet@eclipso.eu>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 3dc39d0b
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