DAGCombiner: Combine SDIV with non-splat vector pow2 divisor
authorZvi Rackover <zvi.rackover@intel.com>
Sun, 8 Apr 2018 11:35:20 +0000 (11:35 +0000)
committerZvi Rackover <zvi.rackover@intel.com>
Sun, 8 Apr 2018 11:35:20 +0000 (11:35 +0000)
commit7a53f169f150e723714011b9c85c91356a9f48bc
treee04b4d4555bdc92dad8f17f857fe2f27c5e30e36
parent86588fc8097ee065756dc0c2b1f65ed462809d06
DAGCombiner: Combine SDIV with non-splat vector pow2 divisor

Summary:
Extend existing SDIV combine for pow2 constant divider to handle
non-splat vectors of pow2 constants.

Reviewers: RKSimon, craig.topper, spatel, hfinkel, efriedma

Reviewed By: RKSimon

Subscribers: magabari, llvm-commits

Differential Revision: https://reviews.llvm.org/D42479

llvm-svn: 329525
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/combine-sdiv.ll