]> granicus.if.org Git - llvm/commit
[X86][SSE] Don't vectorize splat buildvector of binops (PR30780)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 31 Dec 2017 17:07:47 +0000 (17:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 31 Dec 2017 17:07:47 +0000 (17:07 +0000)
commit9215f302aa992901ec632af0de03134fec438c0b
tree7f81621b6e3866982cf09564cd8c8611822e546c
parent2e2b7ab29072d39f3ec9553121d52da38347a7fb
[X86][SSE] Don't vectorize splat buildvector of binops (PR30780)

Don't combine buildvector(binop(),binop(),binop(),binop()) -> binop(buildvector(), buildvector()) if its a splat - keep the binop scalar and just splat the result to avoid large vector constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/build-vector-128.ll
test/CodeGen/X86/build-vector-256.ll
test/CodeGen/X86/vector-pcmp.ll