Teach the foldable tables about 128-bit AVX instructions and make the
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 14 Sep 2011 02:36:58 +0000 (02:36 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 14 Sep 2011 02:36:58 +0000 (02:36 +0000)
commit484ddf54c9f9765e65c46ae435e0143d68d259e2
treedba86657df728203c71ba5e83da65dd5c283610c
parent5ca0d149158eaa8e30cbd00efa0024149b029bb0
Teach the foldable tables about 128-bit AVX instructions and make the
alignment check for 256-bit classes more strict. There're no testcases
but we catch more folding cases for AVX while running single and multi
sources in the llvm testsuite.

Since some 128-bit AVX instructions have different number of operands
than their SSE counterparts, they are placed in different tables.

256-bit AVX instructions should also be added in the table soon. And
there a few more 128-bit versions to handled, which should come in
the following commits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrSSE.td