freedreno/ir3: also track # of nops for shader-db
authorRob Clark <robdclark@chromium.org>
Mon, 4 Nov 2019 19:41:55 +0000 (11:41 -0800)
committerRob Clark <robdclark@gmail.com>
Sat, 9 Nov 2019 02:49:15 +0000 (02:49 +0000)
commita3dc975ee7964d84b4df500751695e6d2cbfcc85
tree5d6ae2ac5e9f2ef002e3731ab93e6d10e495317e
parent5f45818673ec9edeafd60b79231c22e161793b91
freedreno/ir3: also track # of nops for shader-db

The instruction count is (mostly) a measure of what optimization passes
can do, while # of nops is more an indication of how effectively the
scheduler is balancing register pressure vs instruction count.  So track
these independently.

(There could be opportunities to rematerialize values to reduce register
pressure, swapping some nop's with other alu instructions, so nothing is
truely independent.. but it is still useful to break these stats out.)

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3.c
src/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c