freedreno/ir3: use nopN encoding when possible
authorRob Clark <robdclark@gmail.com>
Sat, 23 Feb 2019 16:14:32 +0000 (11:14 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 26 Feb 2019 18:19:44 +0000 (13:19 -0500)
commitcb884d8ab210b4793eb55852b4f07642c71a99a5
tree44c89a11ff1b83dc3c6b6b1b3e3f323dcd6ddf0b
parent04c2520d91920725d91a7be6e415d6ab56aeeaab
freedreno/ir3: use nopN encoding when possible

Use the (nopN) encoding for slightly denser shaders.. this lets us fold
nop instructions into the previous alu instruction in certain cases.

Shouldn't change the # of cycles a shader takes to execute, but reduces
the size.  (ex: glmark2 refract goes from 168 to 116 instructions)

Currently only enabled for a6xx, but I think we could enable this for
a5xx and possibly a4xx.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3.c
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_legalize.c