aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2010-03-19 01:19:52 +0000
committerMon P Wang <wangmp@apple.com>2010-03-19 01:19:52 +0000
commitc1e5d491a0bd99a71c87f6a69bafbecd2f948c82 (patch)
treef836e8e0a8a20034b486b7b2fff9dda3c6921ae1 /lib
parentc28c7689fc555b8507d2b0b128f4e6b05dcf2027 (diff)
downloadexternal_llvm-c1e5d491a0bd99a71c87f6a69bafbecd2f948c82.zip
external_llvm-c1e5d491a0bd99a71c87f6a69bafbecd2f948c82.tar.gz
external_llvm-c1e5d491a0bd99a71c87f6a69bafbecd2f948c82.tar.bz2
Fixed a widening bug where we were not using the correct size for the load
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 8363c3a..ed5f24c 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -2167,7 +2167,7 @@ SDValue DAGTypeLegalizer::GenWidenVectorLoads(SmallVector<SDValue, 16>& LdChain,
} else
return LdOp;
} else {
- unsigned NumElts = WidenWidth / LdWidth;
+ unsigned NumElts = WidenWidth / NewVTWidth;
EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewVT, NumElts);
SDValue VecOp = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, NewVecVT, LdOp);
return DAG.getNode(ISD::BIT_CONVERT, dl, WidenVT, VecOp);