When performing a truncating store, it is sometimes possible to rearrange the
authorNadav Rotem <nadav.rotem@intel.com>
Wed, 10 Aug 2011 19:30:14 +0000 (19:30 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Wed, 10 Aug 2011 19:30:14 +0000 (19:30 +0000)
commit614061bfb4fea3c1233ecf2676282e063724ae93
tree39b076801d61771df2fc6bd98eb4c2f281c924e5
parent103b8e653c981fe916b855f1b96cb35e01c4543e
When performing a truncating store, it is sometimes possible to rearrange the
data in-register prior to saving to memory.  When we reorder the data in memory
we prevent the need to save multiple scalars to memory, making a single regular
store.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137238 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/opt-shuff-tstore.ll [new file with mode: 0644]