Changes in directory llvm/lib/Target/Alpha:

AlphaISelDAGToDAG.cpp updated: 1.26 -> 1.27
---
Log message:

make 0 codegen much better

---
Diffs of the changes:  (+4 -0)

 AlphaISelDAGToDAG.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.26 
llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.27
--- llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.26    Mon Jan  2 15:15:53 2006
+++ llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp Fri Jan  6 13:41:51 2006
@@ -241,6 +241,10 @@
   }
   case ISD::Constant: {
     uint64_t uval = cast<ConstantSDNode>(N)->getValue();
+    
+    if (uval == 0)
+      return CurDAG->getCopyFromReg(CurDAG->getEntryNode(), Alpha::R31, 
MVT::i64);
+
     int64_t val = (int64_t)uval;
     int32_t val32 = (int32_t)val;
     if (val <= IMM_HIGH + IMM_HIGH * IMM_MULT &&



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to