[PATCH] D50392: [TargetLowering] Add support for non-uniform vectors to BuildExactSDIV

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 9 07:22:43 PDT 2018


RKSimon updated this revision to Diff 159922.
RKSimon added a comment.

Rebased.

I've refactored the approach slightly to demonstrate ISD::matchUnaryPredicate being used to iterate over a scalar or the elements of a vector. - this could be used in TargetLowering::BuildUDIV as well to make the equivalent code easier to understand.


Repository:
  rL LLVM

https://reviews.llvm.org/D50392

Files:
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/X86/sdiv-exact.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50392.159922.patch
Type: text/x-patch
Size: 11908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/b963f2b3/attachment-0001.bin>


More information about the llvm-commits mailing list