projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c5dcdb
)
vc4: Drop integer multiplies with 0 to moves of 0.
author
Eric Anholt
<eric@anholt.net>
Mon, 30 Mar 2015 17:44:28 +0000
(10:44 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 30 Mar 2015 19:57:45 +0000
(12:57 -0700)
This cleans up more instructions generated by uniform array indexing
multiplies.
total instructions in shared programs: 39989 -> 39961 (-0.07%)
instructions in affected programs: 896 -> 868 (-3.12%)
src/gallium/drivers/vc4/vc4_opt_algebraic.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_opt_algebraic.c
b/src/gallium/drivers/vc4/vc4_opt_algebraic.c
index d17669abaffba318cbb2e5fc20cb8558badd828c..e40e0f3b71b428fd277e37f815ce45a80fe91664 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_opt_algebraic.c
+++ b/
src/gallium/drivers/vc4/vc4_opt_algebraic.c
@@
-248,6
+248,14
@@
qir_opt_algebraic(struct vc4_compile *c)
}
break;
+ case QOP_MUL24:
+ if (replace_x_0_with_0(c, inst, 0) ||
+ replace_x_0_with_0(c, inst, 1)) {
+ progress = true;
+ break;
+ }
+ break;
+
case QOP_AND:
if (replace_x_0_with_0(c, inst, 0) ||
replace_x_0_with_0(c, inst, 1)) {