[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 18 13:58:14 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.42 -> 1.43
---
Log message:
Zero is cheaper than sign extend.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.42 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.43
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.42 Tue Jan 18 13:27:06 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Jan 18 15:57:59 2005
@@ -793,7 +793,7 @@
case ISD::SIGN_EXTEND:
Result = PromoteOp(Node->getOperand(0));
// NOTE: Any extend would work here...
- Result = DAG.getNode(ISD::SIGN_EXTEND, Op.getValueType(), Result);
+ Result = DAG.getNode(ISD::ZERO_EXTEND, Op.getValueType(), Result);
Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, Result.getValueType(),
Result, Node->getOperand(0).getValueType());
break;
More information about the llvm-commits
mailing list