[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Jun 23 16:42:08 PDT 2004
Changes in directory llvm/lib/Target/SparcV9:
SparcV9PreSelection.cpp updated: 1.34 -> 1.35
---
Log message:
Make the most commonly preselected instructions add to the names of the
instructions they augment, instead of replacing them. It's good for debugging,
and it's OK for the sparcv9 backend.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp:1.34 llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp:1.35
--- llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp:1.34 Wed Jun 2 00:54:43 2004
+++ llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp Wed Jun 23 16:41:32 2004
@@ -91,7 +91,7 @@
return (isa<GlobalVariable>(ptr))
? new GetElementPtrInst(ptr,
std::vector<Value*>(1, ConstantSInt::get(Type::LongTy, 0U)),
- "addrOfGlobal", &insertBefore)
+ "addrOfGlobal:" + ptr->getName(), &insertBefore)
: NULL;
}
@@ -123,7 +123,7 @@
getArg1 = gep;
return new GetElementPtrInst(getArg1,
std::vector<Value*>(CE->op_begin()+1, CE->op_end()),
- "constantGEP", &insertBefore);
+ "constantGEP:" + getArg1->getName(), &insertBefore);
case Instruction::Select: {
Value *C, *S1, *S2;
More information about the llvm-commits
mailing list