aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-11-29 19:13:38 +0000
committerCraig Topper <craig.topper@intel.com>2018-11-29 19:13:38 +0000
commit6cd0b170782a2a03d6f6383a64031474b048d198 (patch)
treedb1f7a41058b247008119ddc0c79c5856aafb9eb /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent514a647433c71434d58cfc9b6a9251f88ae277d6 (diff)
downloadllvm-6cd0b170782a2a03d6f6383a64031474b048d198.zip
llvm-6cd0b170782a2a03d6f6383a64031474b048d198.tar.gz
llvm-6cd0b170782a2a03d6f6383a64031474b048d198.tar.bz2
[X86] Add a DAG combine pre type legalization to widen division by constant splat on narrow vectors to avoid scalarization
This is another patch for -x86-experimental-vector-widening. This pre widens narrow division by constants so that we can get pass the legal type check in the generic DAG combiner. Otherwise we end up scalarizing. I've restricted this to splats for now because it was easy to just call DAG.getConstant. Not sure what we should do for non-splat? Increase the element size?Widen the constant vector by padding with 1? Differential Revision: https://reviews.llvm.org/D54919 llvm-svn: 347898
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
0 files changed, 0 insertions, 0 deletions