[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcInstrSelection.cpp

vadve at cs.uiuc.edu vadve at cs.uiuc.edu
Mon Sep 16 10:57:01 PDT 2002


Changes in directory llvm/lib/Target/Sparc:

SparcInstrSelection.cpp updated: 1.71 -> 1.72

---
Log message:

Use ulong instead of uint for size expressions.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcInstrSelection.cpp
diff -u llvm/lib/Target/Sparc/SparcInstrSelection.cpp:1.71 llvm/lib/Target/Sparc/SparcInstrSelection.cpp:1.72
--- llvm/lib/Target/Sparc/SparcInstrSelection.cpp:1.71	Tue Sep 10 20:20:07 2002
+++ llvm/lib/Target/Sparc/SparcInstrSelection.cpp	Mon Sep 16 10:56:45 2002
@@ -998,7 +998,6 @@
                  && "Array refs must be lowered before Instruction Selection");
 
           Value* idxVal = idxVec[firstIdxIsZero];
-          assert(! isa<Constant>(idxVal) && "Need to sign-extend uint to 64b!");
 
           vector<MachineInstr*> mulVec;
           Instruction* addr = new TmpInstruction(Type::UIntTy, memInst);
@@ -1012,7 +1011,7 @@
                                            /*AllowCompositeLeaf*/ true)
                                  : ptrType);
           const Type* eltType = cast<SequentialType>(vecType)->getElementType();
-          ConstantUInt* eltSizeVal = ConstantUInt::get(Type::UIntTy,
+          ConstantUInt* eltSizeVal = ConstantUInt::get(Type::ULongTy,
                                        target.DataLayout.getTypeSize(eltType));
 
           // CreateMulInstruction() folds constants intelligently enough.





More information about the llvm-commits mailing list