diff options
author | Hao Liu <Hao.Liu@arm.com> | 2014-05-29 09:19:07 +0000 |
---|---|---|
committer | Hao Liu <Hao.Liu@arm.com> | 2014-05-29 09:19:07 +0000 |
commit | bb7f18abf8b3c526a8f82fcc1d8caed419f907fc (patch) | |
tree | f36c9089d3087914e9403d5780c5af4be0065f31 /lib/CodeGen/SelectionDAG | |
parent | 2a747bf1c566cbe9739f2a687bc093fdd5cfeda0 (diff) | |
download | llvm-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.cpp | 4 |
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()) |