]> granicus.if.org Git - llvm/commit
[X86][SSE] Add selective commutation support for insertps (PR40340)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 22 Jan 2019 12:17:48 +0000 (12:17 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 22 Jan 2019 12:17:48 +0000 (12:17 +0000)
commit49551c19d2d1cf78ce312268a876757df9c16b51
treef98bab8b8fe3def5a9b26b54a97f57f32505dd38
parentcba5eef126f6c6873491cdfc269b5136620bf96a
[X86][SSE] Add selective commutation support for insertps (PR40340)

When we are inserting 1 "inline" element, and zeroing 2 of the other elements then we can safely commute the insertps source inputs to improve memory folding.

Differential Revision: https://reviews.llvm.org/D56843

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351807 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrAVX512.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/insertps-combine.ll