Add patterns for the x86 popcnt instruction.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 4 Dec 2010 20:32:23 +0000 (20:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 4 Dec 2010 20:32:23 +0000 (20:32 +0000)
commit1292c226458b68a119d3a387a0527f453b2065c2
tree06a51ac1b82fa451fbf29a41395380f4510ce5f9
parenta6091be84c0ee838fb117b9cfb8eb9c156d44fad
Add patterns for the x86 popcnt instruction.

- Also adds a new POPCNT subtarget feature that is currently enabled if the target
  supports SSE4.2 (nehalem) or SSE4A (barcelona).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86.td
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrSSE.td
lib/Target/X86/X86Subtarget.h
test/CodeGen/X86/popcnt.ll [new file with mode: 0644]