summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-23 23:03:28 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-23 23:03:28 +0000
commit7badee92ade7a178451a3736b3c0be3afdee1b90 (patch)
treed00e8755e9f840dbf226bf3bdb247b9a837f1ac7 /llvm/lib/CodeGen
parent2199ed399f91d1ba0525ed474b96f3566cea447c (diff)
downloadbcm5719-llvm-7badee92ade7a178451a3736b3c0be3afdee1b90.tar.gz
bcm5719-llvm-7badee92ade7a178451a3736b3c0be3afdee1b90.zip
Fix a bug in the expansion of EXTRACT_SUBVECTOR in
ExpandExtractFromVectorThroughStack. llvm-svn: 72351
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 4c2e1ed05ec..25e43d92eae 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -5091,7 +5091,8 @@ SDValue SelectionDAGLegalize::ExpandExtractFromVectorThroughStack(SDValue Op) {
SDValue Ch = DAG.getStore(DAG.getEntryNode(), dl, Vec, StackPtr, NULL, 0);
// Add the offset to the index.
- unsigned EltSize = Op.getValueType().getSizeInBits()/8;
+ unsigned EltSize =
+ Vec.getValueType().getVectorElementType().getSizeInBits()/8;
Idx = DAG.getNode(ISD::MUL, dl, Idx.getValueType(), Idx,
DAG.getConstant(EltSize, Idx.getValueType()));
OpenPOWER on IntegriCloud