summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2014-05-29 09:19:07 +0000
committerHao Liu <Hao.Liu@arm.com>2014-05-29 09:19:07 +0000
commitbb7f18abf8b3c526a8f82fcc1d8caed419f907fc (patch)
treef36c9089d3087914e9403d5780c5af4be0065f31 /lib/CodeGen/SelectionDAG
parent2a747bf1c566cbe9739f2a687bc093fdd5cfeda0 (diff)
downloadllvm-bb7f18abf8b3c526a8f82fcc1d8caed419f907fc.tar.gz
llvm-bb7f18abf8b3c526a8f82fcc1d8caed419f907fc.tar.bz2
llvm-bb7f18abf8b3c526a8f82fcc1d8caed419f907fc.tar.xz
Fix an assertion failure caused by v1i64 in DAGCombiner Shrink.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index b75d80541e..3731aeae37 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -327,6 +327,10 @@ TargetLowering::TargetLoweringOpt::ShrinkDemandedOp(SDValue Op,
assert(Op.getNode()->getNumValues() == 1 &&
"ShrinkDemandedOp only supports nodes with one result!");
+ // Early return, as this function cannot handle vector types.
+ if (Op.getValueType().isVector())
+ return false;
+
// Don't do this if the node has another user, which may require the
// full value.
if (!Op.getNode()->hasOneUse())