Changes in directory llvm/lib/Target/ARM:

ARMISelDAGToDAG.cpp updated: 1.76 -> 1.77
---
Log message:

For PR950: http://llvm.org/PR950 :
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.


---
Diffs of the changes:  (+1 -2)

 ARMISelDAGToDAG.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.76 
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.77
--- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.76        Thu Oct 19 07:06:50 2006
+++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp     Fri Oct 20 02:07:24 2006
@@ -810,8 +810,7 @@
   case ISD::Constant: {
     uint32_t val = cast<ConstantSDNode>(N)->getValue();
     if(!isRotInt8Immediate(val)) {
-      const Type  *t =  MVT::getTypeForValueType(MVT::i32);
-      Constant    *C = ConstantUInt::get(t, val);
+      Constant    *C = ConstantInt::get(Type::UIntTy, val);
       int  alignment = 2;
       SDOperand Addr = CurDAG->getTargetConstantPool(C, MVT::i32, alignment);
       SDOperand    Z = CurDAG->getTargetConstant(0,     MVT::i32);



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

Reply via email to