summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-19 16:47:35 +0000
committerChris Lattner <sabre@nondot.org>2007-10-19 16:47:35 +0000
commit064c31ebac71daa30a6eb43d3e3d9029f90c9e9b (patch)
treea333235250ecd74f8c3d44726a38ee6b4ab676bd /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent321be0cd866bf00692d2ddd8a2820e3623a91a40 (diff)
downloadbcm5719-llvm-064c31ebac71daa30a6eb43d3e3d9029f90c9e9b.tar.gz
bcm5719-llvm-064c31ebac71daa30a6eb43d3e3d9029f90c9e9b.zip
Fix a really nasty vector miscompilation bill recently introduced.
llvm-svn: 43181
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 1ad8e802585..8ffdf63df98 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -4150,9 +4150,9 @@ SDOperand SelectionDAGLegalize::ExpandEXTRACT_VECTOR_ELT(SDOperand Op) {
if (MVT::getSizeInBits(Idx.getValueType()) >
MVT::getSizeInBits(TLI.getPointerTy()))
- Idx = DAG.getNode(ISD::TRUNCATE, TLI.getPointerTy(), StackPtr);
+ Idx = DAG.getNode(ISD::TRUNCATE, TLI.getPointerTy(), Idx);
else
- Idx = DAG.getNode(ISD::ZERO_EXTEND, TLI.getPointerTy(), StackPtr);
+ Idx = DAG.getNode(ISD::ZERO_EXTEND, TLI.getPointerTy(), Idx);
StackPtr = DAG.getNode(ISD::ADD, Idx.getValueType(), Idx, StackPtr);
OpenPOWER on IntegriCloud