[X86] Fix missed selection of non-temporal store of zero vector.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 17 Oct 2014 17:27:06 +0000 (17:27 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 17 Oct 2014 17:27:06 +0000 (17:27 +0000)
commitc48cb86f05ef43082f8ed4055219b2e6724e21ab
tree4b91ad257057ea5c99a3ed7408d4643b541bdb8e
parente8aab7480c2550b51fd60d6eb102b361e70931d7
[X86] Fix missed selection of non-temporal store of zero vector.

When the input to a store instruction was a zero vector, the backend
always selected a normal vector store regardless of the non-temporal
hint. This is fixed by this patch.

This fixes PR19370.

llvm-svn: 220054
llvm/lib/Target/X86/X86InstrSSE.td
llvm/test/CodeGen/X86/nontemporal-2.ll [new file with mode: 0644]