[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Dec 13 23:58:50 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.65 -> 1.66
---
Log message:
Fix a miscompilation in crafty due to a recent patch
---
Diffs of the changes: (+1 -1)
DAGCombiner.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.65 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.66
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.65 Tue Dec 13 20:19:23 2005
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Dec 14 01:58:38 2005
@@ -1582,7 +1582,7 @@
// 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),
More information about the llvm-commits
mailing list