[PATCH] D42479: DAGCombiner: Combine SDIV with non-splat vector pow2 divisor

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 15:20:19 PDT 2018


zvi updated this revision to Diff 141228.
zvi added a comment.

- Remove deprecated comment
- Fix variable names
- N1C can be passed to matchUnaryPredicate also when the divisor is a constant-splat. Makes check more efficient as we avoid re-checking the splatted element for every vector element. (why doesn't matchUnaryPredicate check for splat and do the same?)


Repository:
  rL LLVM

https://reviews.llvm.org/D42479

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/X86/combine-sdiv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42479.141228.patch
Type: text/x-patch
Size: 210783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180405/53f25567/attachment-0001.bin>


More information about the llvm-commits mailing list