]> granicus.if.org Git - llvm/commit
[SelectionDAG] Make ISD::isConstantSplatVector always return an element sized APInt.
authorCraig Topper <craig.topper@intel.com>
Tue, 22 Aug 2017 23:54:13 +0000 (23:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 22 Aug 2017 23:54:13 +0000 (23:54 +0000)
commit31bf47e949eab84de424ae2f3b6ec70b678a61a8
tree45a717bdd8105e421d8d2065489ea00511e8fae8
parent1bc52fbec6610c54651743c90b090fa20d60a0de
[SelectionDAG] Make ISD::isConstantSplatVector always return an element sized APInt.

This partially reverts r311429 in favor of making ISD::isConstantSplatVector do something not confusing. Turns out the only other user of it was also having to deal with the weird property of it returning a smaller size.

So rather than continue to deal with this quirk everywhere, just make the interface do something sane.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311510 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/X86/X86ISelLowering.cpp