diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-16 16:13:58 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-16 16:13:58 +0000 |
commit | 271405907933225e0243b95999437af2313b4dec (patch) | |
tree | d1654b5ad36adfdf1272ab827d01b80ea2d8013c /llvm/lib/CodeGen/SelectionDAG | |
parent | 494fb2652177cba2faadc956e37ab07e5d36abd1 (diff) | |
download | bcm5719-llvm-271405907933225e0243b95999437af2313b4dec.tar.gz bcm5719-llvm-271405907933225e0243b95999437af2313b4dec.zip |
Fix the result type of a VECTOR_SHUFFLE+BIT_CONVERT dagcombine. This
was turned up by some new SelectionDAG assertion checks that I'm
working on.
llvm-svn: 53687
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 581d6ee0426..14efb446fea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5070,9 +5070,8 @@ SDOperand DAGCombiner::XformToShuffleWithZero(SDNode *N) { &IdxOps[0], IdxOps.size())); SDOperand Result = DAG.getNode(ISD::VECTOR_SHUFFLE, VT, &Ops[0], Ops.size()); - if (VT != LHS.getValueType()) { - Result = DAG.getNode(ISD::BIT_CONVERT, LHS.getValueType(), Result); - } + if (VT != N->getValueType(0)) + Result = DAG.getNode(ISD::BIT_CONVERT, N->getValueType(0), Result); return Result; } } |