Add a few patterns to match allzeros without having to use the fp unit.
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 28 Jul 2011 01:26:43 +0000 (01:26 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 28 Jul 2011 01:26:43 +0000 (01:26 +0000)
commita23236c360c06019721bf0ccb7a039d14d0d6114
treeca455c84e058583ba337c89331184fc6e585c25b
parent2e64ae410172d937d8c82ef315458ccc6e213c0a
Add a few patterns to match allzeros without having to use the fp unit.
Take advantage that the 128-bit vpxor zeros the higher part and use it.
This also fixes PR10491

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/avx-cast.ll