[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 20 11:33:23 PDT 2006
Changes in directory llvm/lib/Target:
TargetInstrInfo.cpp updated: 1.16 -> 1.17
---
Log message:
remove some v9 specific code
---
Diffs of the changes: (+0 -20)
TargetInstrInfo.cpp | 20 --------------------
1 files changed, 20 deletions(-)
Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.16 llvm/lib/Target/TargetInstrInfo.cpp:1.17
--- llvm/lib/Target/TargetInstrInfo.cpp:1.16 Fri Apr 22 12:49:49 2005
+++ llvm/lib/Target/TargetInstrInfo.cpp Thu Apr 20 13:33:11 2006
@@ -38,26 +38,6 @@
TargetInstrDescriptors = NULL; // reset global variable
}
-// FIXME: SPARCV9 SPECIFIC!
-bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
- int64_t intValue) const {
- // First, check if opCode has an immed field.
- bool isSignExtended;
- uint64_t maxImmedValue = maxImmedConstant(opCode, isSignExtended);
- if (maxImmedValue != 0)
- {
- // NEED TO HANDLE UNSIGNED VALUES SINCE THEY MAY BECOME MUCH
- // SMALLER AFTER CASTING TO SIGN-EXTENDED int, short, or char.
- // See CreateUIntSetInstruction in SparcInstrInfo.cpp.
-
- // Now check if the constant fits
- if (intValue <= (int64_t) maxImmedValue &&
- intValue >= -((int64_t) maxImmedValue+1))
- return true;
- }
-
- return false;
-}
// commuteInstruction - The default implementation of this method just exchanges
// operand 1 and 2.
More information about the llvm-commits
mailing list