Efficient lowering of vector sdiv when the divisor is a splatted power of two constant.
authorNadav Rotem <nrotem@apple.com>
Wed, 9 Jan 2013 05:14:33 +0000 (05:14 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 9 Jan 2013 05:14:33 +0000 (05:14 +0000)
commit13f8cf55d43980e73d6cbb8f4894607709daa311
treeb6296d4371bfd77ef95601a23932e4ca8d96b730
parent9cceede447118852df76e340252387d1a2cce37d
Efficient lowering of vector sdiv when the divisor is a splatted power of two constant.
PR 14848. The lowered sequence is based on the existing sequence the target-independent
DAG Combiner creates for the scalar case.

Patch by Zvi Rackover.

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