[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp
LLVM
llvm at cs.uiuc.edu
Mon Jul 19 06:25:12 PDT 2004
Changes in directory llvm/lib/Target/SparcV9:
SparcV9InstrInfo.cpp updated: 1.68 -> 1.69
---
Log message:
bug 122: http://llvm.cs.uiuc.edu/PR122 :
Simplify a conditional operator for a constant result from
GV->isNullValue()
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp:1.68 llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp:1.69
--- llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp:1.68 Mon Jul 19 02:52:35 2004
+++ llvm/lib/Target/SparcV9/SparcV9InstrInfo.cpp Mon Jul 19 08:25:02 2004
@@ -62,8 +62,7 @@
// GlobalValue: no conversions needed: get value and return it
if (const GlobalValue* GV = dyn_cast<GlobalValue>(V)) {
isValidConstant = true; // may be overwritten by recursive call
- return GV->isNullValue() ? 0 :
- ConvertConstantToIntType(target, GV, destType, isValidConstant);
+ return ConvertConstantToIntType(target, GV, destType, isValidConstant);
}
// ConstantBool: no conversions needed: get value and return it
More information about the llvm-commits
mailing list