projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38e795
)
Fix a really nasty vector miscompilation bill recently introduced.
author
Chris Lattner
<sabre@nondot.org>
Fri, 19 Oct 2007 16:47:35 +0000
(16:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 19 Oct 2007 16:47:35 +0000
(16:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43181
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 1ad8e80258549fb6012588437b5a221f6ba8e77f..8ffdf63df988b15388e9391db020e5b2a8ebf18e 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
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);