[X86][MMX] Add MMX instructions to foldable tables
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 23 Feb 2015 15:23:22 +0000 (15:23 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 23 Feb 2015 15:23:22 +0000 (15:23 +0000)
commit77d2363908b9abc2f37202d2a16071eaa73fa683
tree13e5e6d7d257060c12d6c6b829b7bd119d22d4ac
parentc606f3a3cb739f2947b63dbe74c047c30dc5cf50
[X86][MMX] Add MMX instructions to foldable tables

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@230226 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/bitcast-mmx.ll
test/CodeGen/X86/vec_extract-mmx.ll