[PATCH] D42479: DAGCombiner: Combine SDIV with non-splat vector pow2 divider
Zvi Rackover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 07:09:37 PST 2018
zvi created this revision.
zvi added reviewers: RKSimon, craig.topper, spatel, hfinkel, efriedma.
Extend existing SDIV combine for pow2 constant divider to handle
non-splat vectors of pow2 constants.
Since the combine expands to shifts with vector variable shift amount,
added a TLI hook for querying about profitability of the expansion.
Repository:
rL LLVM
https://reviews.llvm.org/D42479
Files:
include/llvm/CodeGen/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/combine-sdiv.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42479.131263.patch
Type: text/x-patch
Size: 48105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/f3e04c2b/attachment.bin>
More information about the llvm-commits
mailing list