[X86][AVX] Added (V)MOVDDUP / (V)MOVSLDUP / (V)MOVSHDUP memory folding + tests.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 22 Jan 2015 22:39:59 +0000 (22:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 22 Jan 2015 22:39:59 +0000 (22:39 +0000)
commit316b43f7df333afe58bb6a0b07b49f31ab5b1766
tree8fab7fc6d2b5849180a639612829ac8e6b0d7688
parent6377361399818130dd8bf8c776862a2a61fc00e8
[X86][AVX] Added (V)MOVDDUP / (V)MOVSLDUP / (V)MOVSHDUP memory folding + tests.

Minor tweak now that D7042 is complete, we can enable stack folding for (V)MOVDDUP and do proper testing.

Added missing AVX ymm folding patterns and fixed alignment for AVX VMOVSLDUP / VMOVSHDUP.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/stack-folding-fp-avx1.ll
test/CodeGen/X86/stack-folding-fp-sse42.ll