[X86][MMX] Reapply: Add MMX instructions to foldable tables
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 25 Feb 2015 15:14:02 +0000 (15:14 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 25 Feb 2015 15:14:02 +0000 (15:14 +0000)
commit51fc7f5afa5bf0d194c4928bcc948aa5c0a27c0d
tree4012a782dbcd735efca4f9f6279ccac0faa62a4e
parent8ad268fd61ca568ee9b9e286a5af82053b4eddea
[X86][MMX] Reapply: Add MMX instructions to foldable tables

Reapply r230248.

Teach the peephole optimizer to work with MMX instructions by adding
entries into the foldable tables. This covers folding opportunities not
handled during isel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230499 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/mmx-fold-load.ll
test/CodeGen/X86/vec_extract-mmx.ll