[X86][SSE] Add support for matching commuted insertps patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 19 Aug 2016 10:31:53 +0000 (10:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 19 Aug 2016 10:31:53 +0000 (10:31 +0000)
commitf1b8fdc074d2a9667ee62d36f8bfdaeaa21980c2
tree6d48b49e41817ba577f1647776207499ab5ab521
parent11a1936b70be22a9b99fc661fd46a837507df65c
[X86][SSE] Add support for matching commuted insertps patterns

INSERTPS doesn't fit well with our shuffle mask canonicalization, so we need to attempt both the original mask and the commuted mask to more likely get a match

llvm-svn: 279230
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/insertps-combine.ll