IntegerRegSize is always 8 for sparc
llvm-svn: 5961
diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
index 8bdb0f2..331fd46 100644
--- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
@@ -441,9 +441,7 @@
uint64_t C = GetConstantValueAsUnsignedInt(val, isValidConstant);
assert(isValidConstant && "Unrecognized constant");
- if (opSize > destSize ||
- (val->getType()->isSigned()
- && destSize < target.getTargetData().getIntegerRegSize()))
+ if (opSize > destSize || (val->getType()->isSigned() && destSize < 8))
{ // operand is larger than dest,
// OR both are equal but smaller than the full register size
// AND operand is signed, so it may have extra sign bits: