r600/sb: add lds related peepholes.
authorDave Airlie <airlied@redhat.com>
Wed, 10 Jan 2018 06:08:48 +0000 (06:08 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 03:38:17 +0000 (03:38 +0000)
commit44a27cdceca0b835d964ca16db68721816ae868f
tree26ba42a775cc7ff7636745448da406bbdb942078
parent3bb2b2cc451651247307ceb6f08ab06909437984
r600/sb: add lds related peepholes.

if no destination:
a) convert _RET instructions to non _RET variants if no dst
b) set src0 to undefined if it's a READ, this should get DCE then.

Acked-By: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_peephole.cpp