[TargetLowering] Generalise BuildSDIV function
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 3 Aug 2018 10:00:54 +0000 (10:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 3 Aug 2018 10:00:54 +0000 (10:00 +0000)
commit94112ebc75c9f542ab6900a7808c7e14c30c502d
tree18d6e51c7b022ad9f75d208105c7488a6aa805b7
parentec45bc2feaa43dffc5e2aa01825dee422487aac3
[TargetLowering] Generalise BuildSDIV function

First step towards a BuildSDIV equivalent to D49248 for non-uniform vector support - this just pushes the splat detection down into TargetLowering::BuildSDIV where its still used.

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

llvm-svn: 338838
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp