diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-14 07:58:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-14 07:58:38 +0000 |
commit | f753d1a574ba2466a0c49d440465158d0fa45dc2 (patch) | |
tree | 493cfd1d4641c31112808b75934371c6ff28de81 /llvm/lib | |
parent | c273900dd81b6f95c6266670c74038e49e3dc41f (diff) | |
download | bcm5719-llvm-f753d1a574ba2466a0c49d440465158d0fa45dc2.tar.gz bcm5719-llvm-f753d1a574ba2466a0c49d440465158d0fa45dc2.zip |
Fix a miscompilation in crafty due to a recent patch
llvm-svn: 24706
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index acd80cf0dcf..c7cc6916ab9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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), |