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:
9d3a483
)
Nate noticed that Andrew never did this. This fixes PR600
author
Chris Lattner
<sabre@nondot.org>
Fri, 26 Aug 2005 22:50:40 +0000
(22:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 26 Aug 2005 22:50:40 +0000
(22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23110
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 dc706c1eeacdfa12a94044f3544f058aebba08bf..624933cd51441c5ae3b344dbd17998b64e669acc 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-2005,7
+2005,7
@@
SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
Result = DAG.getNode(ISD::UNDEF, NVT);
break;
case ISD::Constant:
- Result = DAG.getNode(ISD::
ZERO
_EXTEND, NVT, Op);
+ Result = DAG.getNode(ISD::
SIGN
_EXTEND, NVT, Op);
assert(isa<ConstantSDNode>(Result) && "Didn't constant fold zext?");
break;
case ISD::ConstantFP: