[PATCH] D49248: [TargetLowering] Add support for non-uniform vectors to BuildUDIV

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 12 09:24:31 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: spatel, efriedma, craig.topper, lebedev.ri, andreadb.

This patch refactors the existing TargetLowering::BuildUDIV base implementation to support non-uniform constant vector denominators.

This does require a change to the function arguments, which would affect any target that has overridden this (none in mainline though).


Repository:
  rL LLVM

https://reviews.llvm.org/D49248

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/X86/combine-udiv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49248.155195.patch
Type: text/x-patch
Size: 16094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/40b7549e/attachment-0001.bin>


More information about the llvm-commits mailing list