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:
7a7e837
)
Fix a miscompilation in crafty due to a recent patch
author
Chris Lattner
<sabre@nondot.org>
Wed, 14 Dec 2005 07:58:38 +0000
(07:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 14 Dec 2005 07:58:38 +0000
(07:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24706
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index acd80cf0dcfd7f8a7a9a37f090b5f69c339cb0fb..c7cc6916ab967f0f2ff51737935f80e9c9850688 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-1582,7
+1582,7
@@
SDOperand DAGCombiner::visitZERO_EXTEND(SDNode *N) {
// fold (zext (truncate x)) -> (zextinreg x) iff x size == zext size.
if (N0.getOpcode() == ISD::TRUNCATE && N0.getOperand(0).getValueType() == VT&&
!AfterLegalize)
- return DAG.getZeroExtendInReg(N0.getOperand(0),
VT
);
+ return DAG.getZeroExtendInReg(N0.getOperand(0),
N0.getValueType()
);
// fold (zext (load x)) -> (zext (truncate (zextload x)))
if (N0.getOpcode() == ISD::LOAD && N0.hasOneUse()) {
SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, N0.getOperand(0),