[TargetLowering] Add support for non-uniform vectors to BuildSDIV
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 17:44:33 +0000 (17:44 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 17:44:33 +0000 (17:44 +0000)
commit87d0039a45bed3cb780866fbf283a06a316f4e38
tree0bc0cf2b8b400ad8096da0bb13bd0e0b22526851
parentbd5d71229db6c6c4f2446229de9b0e930b7f6be9
[TargetLowering] Add support for non-uniform vectors to BuildSDIV

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

This is the last patch necessary to close PR36545

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

llvm-svn: 339908
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/combine-sdiv.ll