From a846b729e44b954cf616a967c4a686fdeaee0932 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 23 Jun 2004 21:41:32 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14353 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9PreSelection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/SparcV9/SparcV9PreSelection.cpp b/lib/Target/SparcV9/SparcV9PreSelection.cpp index a5c3f0f5db7..00cfd1295e6 100644 --- a/lib/Target/SparcV9/SparcV9PreSelection.cpp +++ b/lib/Target/SparcV9/SparcV9PreSelection.cpp @@ -91,7 +91,7 @@ static GetElementPtrInst* getGlobalAddr(Value* ptr, Instruction& insertBefore) { return (isa(ptr)) ? new GetElementPtrInst(ptr, std::vector(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(CE->op_begin()+1, CE->op_end()), - "constantGEP", &insertBefore); + "constantGEP:" + getArg1->getName(), &insertBefore); case Instruction::Select: { Value *C, *S1, *S2;