diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-23 21:41:32 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-23 21:41:32 +0000 |
commit | ae6fb8ae5c8cd7789aca114825d4c05ac37b970f (patch) | |
tree | 3f1806563bea58f96e02ed7164918dd342534f29 /llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp | |
parent | 8604fde39db4064b7c39e7ea5ae12adb11f3559f (diff) | |
download | bcm5719-llvm-ae6fb8ae5c8cd7789aca114825d4c05ac37b970f.tar.gz bcm5719-llvm-ae6fb8ae5c8cd7789aca114825d4c05ac37b970f.zip |
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.
llvm-svn: 14353
Diffstat (limited to 'llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp')
-rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp b/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp index a5c3f0f5db7..00cfd1295e6 100644 --- a/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9PreSelection.cpp @@ -91,7 +91,7 @@ static GetElementPtrInst* getGlobalAddr(Value* ptr, Instruction& insertBefore) { 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 @@ static Instruction* DecomposeConstantExpr(ConstantExpr* CE, 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; |