]> git.videolan.org Git - x264.git/commit
x86inc: AVX symmetry optimization
authorLoren Merritt <pengvado@akuvian.org>
Sun, 23 Oct 2011 23:15:11 +0000 (23:15 +0000)
committerJason Garrett-Glaser <jason@x264.com>
Thu, 1 Dec 2011 20:27:40 +0000 (12:27 -0800)
commit4185ee883b04d9cee57a64fdebd153830b7b27ba
treebd2d0838881829daec574c5db5d5a928b9d8592e
parentcc129adcaaf5604f3d4fea9ebcb289403192a741
x86inc: AVX symmetry optimization
3-arg AVX ops with a memory arg can only have it in src2,
whereas SSE emulation of 3-arg prefers to have it in src1 (i.e. the move).
So, if the op is symmetric and the wrong one is memory, swap them.
Eliminates redundant moves in some cases when using 3-operand without AVX with memory arguments.
Also fix movss and movsd in some cases, and flag shufps correctly as float.
common/x86/x86inc.asm