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:
668c9e3
)
Fix r123346 to handle scalar types too.
author
Dan Gohman
<gohman@apple.com>
Thu, 13 Jan 2011 01:06:51 +0000
(
01:06
+0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 13 Jan 2011 01:06:51 +0000
(
01:06
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123352
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 eb697ba3e401c8b88c15b2210b096353da21dbd8..cbe38450f9865dcde18cfe62322b4c217ac46811 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-1378,8
+1378,7
@@
SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
Result.getValueType(),
Result, DAG.getValueType(SrcVT));
else
- ValRes = DAG.getZeroExtendInReg(Result, dl,
- SrcVT.getVectorElementType());
+ ValRes = DAG.getZeroExtendInReg(Result, dl, SrcVT.getScalarType());
Tmp1 = LegalizeOp(ValRes); // Relegalize new nodes.
Tmp2 = LegalizeOp(Result.getValue(1)); // Relegalize new nodes.
break;