[llvm-commits] [llvm] r140634 - in /llvm/trunk: lib/Analysis/ lib/Transforms/IPO/ lib/Transforms/InstCombine/ lib/Transforms/Scalar/ lib/Transforms/Utils/ test/Transforms/IndVarSimplify/ test/Transforms/InstCombine/ test/Transforms/LoopIdiom/ test/Transforms/LoopStrengthReduce/ test/Transforms/ScalarRepl/ test/Transforms/SimplifyLibCalls/

Jim Grosbach grosbach at apple.com
Tue Sep 27 15:02:40 PDT 2011


Heh. That's a really nice cleanup. 

-j
On Sep 27, 2011, at 1:39 PM, Benjamin Kramer wrote:

> Author: d0k
> Date: Tue Sep 27 15:39:19 2011
> New Revision: 140634
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=140634&view=rev
> Log:
> Stop emitting instructions with the name "tmp" they eat up memory and have to be uniqued, without any benefit.
> 
> If someone prefers %tmp42 to %42, run instnamer.
> 
> Modified:
>    llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
>    llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
>    llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
>    llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
>    llvm/trunk/lib/Transforms/Scalar/GVN.cpp
>    llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
>    llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
>    llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp
>    llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
>    llvm/trunk/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll
>    llvm/trunk/test/Transforms/InstCombine/call.ll
>    llvm/trunk/test/Transforms/InstCombine/ptr-int-cast.ll
>    llvm/trunk/test/Transforms/InstCombine/vector-casts.ll
>    llvm/trunk/test/Transforms/LoopIdiom/basic.ll
>    llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
>    llvm/trunk/test/Transforms/ScalarRepl/vector_promote.ll
>    llvm/trunk/test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll
> 
> Modified: llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
> +++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Tue Sep 27 15:39:19 2011
> @@ -163,7 +163,7 @@
>   }
> 
>   // If we haven't found this binop, insert it.
> -  Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS, "tmp"));
> +  Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS));
>   BO->setDebugLoc(SaveInsertPt->getDebugLoc());
>   rememberInstruction(BO);
> 
> @@ -980,7 +980,7 @@
>       const SCEV *const StepArray[1] = { SE.getSCEV(StepV) };
>       IncV = expandAddToGEP(StepArray, StepArray+1, GEPPtrTy, IntTy, PN);
>       if (IncV->getType() != PN->getType()) {
> -        IncV = Builder.CreateBitCast(IncV, PN->getType(), "tmp");
> +        IncV = Builder.CreateBitCast(IncV, PN->getType());
>         rememberInstruction(IncV);
>       }
>     } else {
> @@ -1222,7 +1222,7 @@
>   Type *Ty = SE.getEffectiveSCEVType(S->getType());
>   Value *V = expandCodeFor(S->getOperand(),
>                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
> -  Value *I = Builder.CreateTrunc(V, Ty, "tmp");
> +  Value *I = Builder.CreateTrunc(V, Ty);
>   rememberInstruction(I);
>   return I;
> }
> @@ -1231,7 +1231,7 @@
>   Type *Ty = SE.getEffectiveSCEVType(S->getType());
>   Value *V = expandCodeFor(S->getOperand(),
>                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
> -  Value *I = Builder.CreateZExt(V, Ty, "tmp");
> +  Value *I = Builder.CreateZExt(V, Ty);
>   rememberInstruction(I);
>   return I;
> }
> @@ -1240,7 +1240,7 @@
>   Type *Ty = SE.getEffectiveSCEVType(S->getType());
>   Value *V = expandCodeFor(S->getOperand(),
>                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
> -  Value *I = Builder.CreateSExt(V, Ty, "tmp");
> +  Value *I = Builder.CreateSExt(V, Ty);
>   rememberInstruction(I);
>   return I;
> }
> @@ -1256,7 +1256,7 @@
>       LHS = InsertNoopCastOfTo(LHS, Ty);
>     }
>     Value *RHS = expandCodeFor(S->getOperand(i), Ty);
> -    Value *ICmp = Builder.CreateICmpSGT(LHS, RHS, "tmp");
> +    Value *ICmp = Builder.CreateICmpSGT(LHS, RHS);
>     rememberInstruction(ICmp);
>     Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smax");
>     rememberInstruction(Sel);
> @@ -1280,7 +1280,7 @@
>       LHS = InsertNoopCastOfTo(LHS, Ty);
>     }
>     Value *RHS = expandCodeFor(S->getOperand(i), Ty);
> -    Value *ICmp = Builder.CreateICmpUGT(LHS, RHS, "tmp");
> +    Value *ICmp = Builder.CreateICmpUGT(LHS, RHS);
>     rememberInstruction(ICmp);
>     Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "umax");
>     rememberInstruction(Sel);
> 
> Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
> +++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Tue Sep 27 15:39:19 2011
> @@ -1376,8 +1376,7 @@
>   for (unsigned i = 0, e = FieldGlobals.size(); i != e; ++i) {
>     Value *GVVal = new LoadInst(FieldGlobals[i], "tmp", NullPtrBlock);
>     Value *Cmp = new ICmpInst(*NullPtrBlock, ICmpInst::ICMP_NE, GVVal,
> -                              Constant::getNullValue(GVVal->getType()),
> -                              "tmp");
> +                              Constant::getNullValue(GVVal->getType()));
>     BasicBlock *FreeBlock = BasicBlock::Create(Cmp->getContext(), "free_it",
>                                                OrigBB->getParent());
>     BasicBlock *NextBlock = BasicBlock::Create(Cmp->getContext(), "next",
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp Tue Sep 27 15:39:19 2011
> @@ -1197,7 +1197,7 @@
>         // an endless loop. By checking that A is non-constant we ensure that
>         // we will never get to the loop.
>         if (A == tmpOp0 && !isa<Constant>(A)) // A&(A^B) -> A & ~B
> -          return BinaryOperator::CreateAnd(A, Builder->CreateNot(B, "tmp"));
> +          return BinaryOperator::CreateAnd(A, Builder->CreateNot(B));
>       }
>     }
> 
> @@ -2228,14 +2228,14 @@
>       if (A == Op1)                                  // (B|A)^B == (A|B)^B
>         std::swap(A, B);
>       if (B == Op1)                                  // (A|B)^B == A & ~B
> -        return BinaryOperator::CreateAnd(A, Builder->CreateNot(Op1, "tmp"));
> +        return BinaryOperator::CreateAnd(A, Builder->CreateNot(Op1));
>     } else if (match(Op0I, m_And(m_Value(A), m_Value(B))) && 
>                Op0I->hasOneUse()){
>       if (A == Op1)                                        // (A&B)^A -> (B&A)^A
>         std::swap(A, B);
>       if (B == Op1 &&                                      // (B&A)^A == ~B & A
>           !isa<ConstantInt>(Op1)) {  // Canonical form is (B&C)^C
> -        return BinaryOperator::CreateAnd(Builder->CreateNot(A, "tmp"), Op1);
> +        return BinaryOperator::CreateAnd(Builder->CreateNot(A), Op1);
>       }
>     }
>   }
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Tue Sep 27 15:39:19 2011
> @@ -654,15 +654,13 @@
> 
>           if (ExtractedElts[Idx] == 0) {
>             ExtractedElts[Idx] = 
> -              Builder->CreateExtractElement(Idx < 16 ? Op0 : Op1, 
> -                  ConstantInt::get(Type::getInt32Ty(II->getContext()),
> -                                   Idx&15, false), "tmp");
> +              Builder->CreateExtractElement(Idx < 16 ? Op0 : Op1,
> +                                            Builder->getInt32(Idx&15));
>           }
> 
>           // Insert this value into the result vector.
>           Result = Builder->CreateInsertElement(Result, ExtractedElts[Idx],
> -                         ConstantInt::get(Type::getInt32Ty(II->getContext()),
> -                                          i, false), "tmp");
> +                                                Builder->getInt32(i));
>         }
>         return CastInst::Create(Instruction::BitCast, Result, CI.getType());
>       }
> @@ -1143,7 +1141,7 @@
>     } else {
>       Instruction::CastOps opcode = CastInst::getCastOpcode(*AI,
>           false, ParamTy, false);
> -      Args.push_back(Builder->CreateCast(opcode, *AI, ParamTy, "tmp"));
> +      Args.push_back(Builder->CreateCast(opcode, *AI, ParamTy));
>     }
> 
>     // Add any parameter attributes.
> @@ -1169,7 +1167,7 @@
>           // Must promote to pass through va_arg area!
>           Instruction::CastOps opcode =
>             CastInst::getCastOpcode(*AI, false, PTy, false);
> -          Args.push_back(Builder->CreateCast(opcode, *AI, PTy, "tmp"));
> +          Args.push_back(Builder->CreateCast(opcode, *AI, PTy));
>         } else {
>           Args.push_back(*AI);
>         }
> @@ -1213,7 +1211,7 @@
>     if (!NV->getType()->isVoidTy()) {
>       Instruction::CastOps opcode =
>         CastInst::getCastOpcode(NC, false, OldRetTy, false);
> -      NV = NC = CastInst::Create(opcode, NC, OldRetTy, "tmp");
> +      NV = NC = CastInst::Create(opcode, NC, OldRetTy);
>       NC->setDebugLoc(Caller->getDebugLoc());
> 
>       // If this is an invoke instruction, we should insert it after the first
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp Tue Sep 27 15:39:19 2011
> @@ -122,13 +122,13 @@
>   } else {
>     Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale);
>     // Insert before the alloca, not before the cast.
> -    Amt = AllocaBuilder.CreateMul(Amt, NumElements, "tmp");
> +    Amt = AllocaBuilder.CreateMul(Amt, NumElements);
>   }
> 
>   if (uint64_t Offset = (AllocElTySize*ArrayOffset)/CastElTySize) {
>     Value *Off = ConstantInt::get(AI.getArraySize()->getType(),
>                                   Offset, true);
> -    Amt = AllocaBuilder.CreateAdd(Amt, Off, "tmp");
> +    Amt = AllocaBuilder.CreateAdd(Amt, Off);
>   }
> 
>   AllocaInst *New = AllocaBuilder.CreateAlloca(CastElTy, Amt);
> @@ -457,7 +457,7 @@
>   // Canonicalize trunc x to i1 -> (icmp ne (and x, 1), 0), likewise for vector.
>   if (DestTy->getScalarSizeInBits() == 1) {
>     Constant *One = ConstantInt::get(Src->getType(), 1);
> -    Src = Builder->CreateAnd(Src, One, "tmp");
> +    Src = Builder->CreateAnd(Src, One);
>     Value *Zero = Constant::getNullValue(Src->getType());
>     return new ICmpInst(ICmpInst::ICMP_NE, Src, Zero);
>   }
> @@ -519,7 +519,7 @@
>                                    In->getType()->getScalarSizeInBits()-1);
>       In = Builder->CreateLShr(In, Sh, In->getName()+".lobit");
>       if (In->getType() != CI.getType())
> -        In = Builder->CreateIntCast(In, CI.getType(), false/*ZExt*/, "tmp");
> +        In = Builder->CreateIntCast(In, CI.getType(), false/*ZExt*/);
> 
>       if (ICI->getPredicate() == ICmpInst::ICMP_SGT) {
>         Constant *One = ConstantInt::get(In->getType(), 1);
> @@ -573,7 +573,7 @@
> 
>         if ((Op1CV != 0) == isNE) { // Toggle the low bit.
>           Constant *One = ConstantInt::get(In->getType(), 1);
> -          In = Builder->CreateXor(In, One, "tmp");
> +          In = Builder->CreateXor(In, One);
>         }
> 
>         if (CI.getType() == In->getType())
> @@ -821,7 +821,7 @@
>                                                            AndValue));
>     }
>     if (SrcSize > DstSize) {
> -      Value *Trunc = Builder->CreateTrunc(A, CI.getType(), "tmp");
> +      Value *Trunc = Builder->CreateTrunc(A, CI.getType());
>       APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize));
>       return BinaryOperator::CreateAnd(Trunc, 
>                                        ConstantInt::get(Trunc->getType(),
> @@ -868,7 +868,7 @@
>             Value *TI0 = TI->getOperand(0);
>             if (TI0->getType() == CI.getType()) {
>               Constant *ZC = ConstantExpr::getZExt(C, CI.getType());
> -              Value *NewAnd = Builder->CreateAnd(TI0, ZC, "tmp");
> +              Value *NewAnd = Builder->CreateAnd(TI0, ZC);
>               return BinaryOperator::CreateXor(NewAnd, ZC);
>             }
>           }
> @@ -901,7 +901,7 @@
>                                    Op0->getType()->getScalarSizeInBits()-1);
>       Value *In = Builder->CreateAShr(Op0, Sh, Op0->getName()+".lobit");
>       if (In->getType() != CI.getType())
> -        In = Builder->CreateIntCast(In, CI.getType(), true/*SExt*/, "tmp");
> +        In = Builder->CreateIntCast(In, CI.getType(), true/*SExt*/);
> 
>       if (Pred == ICmpInst::ICMP_SGT)
>         In = Builder->CreateNot(In, In->getName()+".not");
> @@ -1307,13 +1307,13 @@
>     if (CI.getOperand(0)->getType()->getScalarSizeInBits() >
>         TD->getPointerSizeInBits()) {
>       Value *P = Builder->CreateTrunc(CI.getOperand(0),
> -                                      TD->getIntPtrType(CI.getContext()), "tmp");
> +                                      TD->getIntPtrType(CI.getContext()));
>       return new IntToPtrInst(P, CI.getType());
>     }
>     if (CI.getOperand(0)->getType()->getScalarSizeInBits() <
>         TD->getPointerSizeInBits()) {
>       Value *P = Builder->CreateZExt(CI.getOperand(0),
> -                                     TD->getIntPtrType(CI.getContext()), "tmp");
> +                                     TD->getIntPtrType(CI.getContext()));
>       return new IntToPtrInst(P, CI.getType());
>     }
>   }
> @@ -1382,14 +1382,12 @@
>   if (TD) {
>     if (CI.getType()->getScalarSizeInBits() < TD->getPointerSizeInBits()) {
>       Value *P = Builder->CreatePtrToInt(CI.getOperand(0),
> -                                         TD->getIntPtrType(CI.getContext()),
> -                                         "tmp");
> +                                         TD->getIntPtrType(CI.getContext()));
>       return new TruncInst(P, CI.getType());
>     }
>     if (CI.getType()->getScalarSizeInBits() > TD->getPointerSizeInBits()) {
>       Value *P = Builder->CreatePtrToInt(CI.getOperand(0),
> -                                         TD->getIntPtrType(CI.getContext()),
> -                                         "tmp");
> +                                         TD->getIntPtrType(CI.getContext()));
>       return new ZExtInst(P, CI.getType());
>     }
>   }
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Tue Sep 27 15:39:19 2011
> @@ -1186,10 +1186,10 @@
>         // Compute C << Y.
>         Value *NS;
>         if (Shift->getOpcode() == Instruction::LShr) {
> -          NS = Builder->CreateShl(AndCST, Shift->getOperand(1), "tmp");
> +          NS = Builder->CreateShl(AndCST, Shift->getOperand(1));
>         } else {
>           // Insert a logical shift.
> -          NS = Builder->CreateLShr(AndCST, Shift->getOperand(1), "tmp");
> +          NS = Builder->CreateLShr(AndCST, Shift->getOperand(1));
>         }
> 
>         // Compute X & (C << Y).
> @@ -2484,7 +2484,7 @@
>             match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) {
>           Constant *NC = ConstantInt::get(I.getContext(),
>                                           C1->getValue() ^ C2->getValue());
> -          Value *Xor = Builder->CreateXor(C, NC, "tmp");
> +          Value *Xor = Builder->CreateXor(C, NC);
>           return new ICmpInst(I.getPredicate(), A, Xor);
>         }
> 
> @@ -2520,8 +2520,8 @@
>       }
> 
>       if (X) {   // Build (X^Y) & Z
> -        Op1 = Builder->CreateXor(X, Y, "tmp");
> -        Op1 = Builder->CreateAnd(Op1, Z, "tmp");
> +        Op1 = Builder->CreateXor(X, Y);
> +        Op1 = Builder->CreateAnd(Op1, Z);
>         I.setOperand(0, Op1);
>         I.setOperand(1, Constant::getNullValue(Op1->getType()));
>         return &I;
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Tue Sep 27 15:39:19 2011
> @@ -38,7 +38,7 @@
>                       m_Value(B))) &&
>       // The "1" can be any value known to be a power of 2.
>       isPowerOfTwo(PowerOf2, IC.getTargetData())) {
> -    A = IC.Builder->CreateSub(A, B, "tmp");
> +    A = IC.Builder->CreateSub(A, B);
>     return IC.Builder->CreateShl(PowerOf2, A);
>   }
> 
> @@ -131,7 +131,7 @@
>     { Value *X; ConstantInt *C1;
>       if (Op0->hasOneUse() &&
>           match(Op0, m_Add(m_Value(X), m_ConstantInt(C1)))) {
> -        Value *Add = Builder->CreateMul(X, CI, "tmp");
> +        Value *Add = Builder->CreateMul(X, CI);
>         return BinaryOperator::CreateAdd(Add, Builder->CreateMul(C1, CI));
>       }
>     }
> @@ -244,7 +244,7 @@
> 
>     if (BoolCast) {
>       Value *V = Builder->CreateSub(Constant::getNullValue(I.getType()),
> -                                    BoolCast, "tmp");
> +                                    BoolCast);
>       return BinaryOperator::CreateAnd(V, OtherOp);
>     }
>   }
> @@ -466,8 +466,7 @@
>   { const APInt *CI; Value *N;
>     if (match(Op1, m_Shl(m_Power2(CI), m_Value(N)))) {
>       if (*CI != 1)
> -        N = Builder->CreateAdd(N, ConstantInt::get(I.getType(), CI->logBase2()),
> -                               "tmp");
> +        N = Builder->CreateAdd(N, ConstantInt::get(I.getType(),CI->logBase2()));
>       if (I.isExact())
>         return BinaryOperator::CreateExactLShr(Op0, N);
>       return BinaryOperator::CreateLShr(Op0, N);
> @@ -630,7 +629,7 @@
>   // Turn A % (C << N), where C is 2^k, into A & ((C << N)-1)  
>   if (match(Op1, m_Shl(m_Power2(), m_Value()))) {
>     Constant *N1 = Constant::getAllOnesValue(I.getType());
> -    Value *Add = Builder->CreateAdd(Op1, N1, "tmp");
> +    Value *Add = Builder->CreateAdd(Op1, N1);
>     return BinaryOperator::CreateAnd(Op0, Add);
>   }
> 
> 
> Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp Tue Sep 27 15:39:19 2011
> @@ -325,8 +325,7 @@
>       if ((RHSKnownOne & LHSKnownOne) == RHSKnownOne) {
>         Constant *AndC = Constant::getIntegerValue(VTy,
>                                                    ~RHSKnownOne & DemandedMask);
> -        Instruction *And = 
> -          BinaryOperator::CreateAnd(I->getOperand(0), AndC, "tmp");
> +        Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC);
>         return InsertNewInstWith(And, *I);
>       }
>     }
> @@ -351,14 +350,12 @@
> 
>         Constant *AndC =
>           ConstantInt::get(I->getType(), NewMask & AndRHS->getValue());
> -        Instruction *NewAnd = 
> -          BinaryOperator::CreateAnd(I->getOperand(0), AndC, "tmp");
> +        Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC);
>         InsertNewInstWith(NewAnd, *I);
> 
>         Constant *XorC =
>           ConstantInt::get(I->getType(), NewMask & XorRHS->getValue());
> -        Instruction *NewXor =
> -          BinaryOperator::CreateXor(NewAnd, XorC, "tmp");
> +        Instruction *NewXor = BinaryOperator::CreateXor(NewAnd, XorC);
>         return InsertNewInstWith(NewXor, *I);
>       }
> 
> 
> Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Tue Sep 27 15:39:19 2011
> @@ -822,7 +822,7 @@
>     DEBUG(dbgs() << "CGP: Reusing nonlocal addrmode: " << AddrMode << " for "
>                  << *MemoryInst);
>     if (SunkAddr->getType() != Addr->getType())
> -      SunkAddr = Builder.CreateBitCast(SunkAddr, Addr->getType(), "tmp");
> +      SunkAddr = Builder.CreateBitCast(SunkAddr, Addr->getType());
>   } else {
>     DEBUG(dbgs() << "CGP: SINKING nonlocal addrmode: " << AddrMode << " for "
>                  << *MemoryInst);
> 
> Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Tue Sep 27 15:39:19 2011
> @@ -946,10 +946,9 @@
>   // Compute which bits of the stored value are being used by the load.  Convert
>   // to an integer type to start with.
>   if (SrcVal->getType()->isPointerTy())
> -    SrcVal = Builder.CreatePtrToInt(SrcVal, TD.getIntPtrType(Ctx), "tmp");
> +    SrcVal = Builder.CreatePtrToInt(SrcVal, TD.getIntPtrType(Ctx));
>   if (!SrcVal->getType()->isIntegerTy())
> -    SrcVal = Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize*8),
> -                                   "tmp");
> +    SrcVal = Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize*8));
> 
>   // Shift the bits to the least significant depending on endianness.
>   unsigned ShiftAmt;
> @@ -959,11 +958,10 @@
>     ShiftAmt = (StoreSize-LoadSize-Offset)*8;
> 
>   if (ShiftAmt)
> -    SrcVal = Builder.CreateLShr(SrcVal, ShiftAmt, "tmp");
> +    SrcVal = Builder.CreateLShr(SrcVal, ShiftAmt);
> 
>   if (LoadSize != StoreSize)
> -    SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8),
> -                                 "tmp");
> +    SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8));
> 
>   return CoerceAvailableValueToLoadType(SrcVal, LoadTy, InsertPt, TD);
> }
> 
> Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Tue Sep 27 15:39:19 2011
> @@ -492,7 +492,7 @@
>   Value *BranchVal = LIC;
>   if (!isa<ConstantInt>(Val) ||
>       Val->getType() != Type::getInt1Ty(LIC->getContext()))
> -    BranchVal = new ICmpInst(InsertPt, ICmpInst::ICMP_EQ, LIC, Val, "tmp");
> +    BranchVal = new ICmpInst(InsertPt, ICmpInst::ICMP_EQ, LIC, Val);
>   else if (Val != ConstantInt::getTrue(Val->getContext()))
>     // We want to enter the new loop when the condition is true.
>     std::swap(TrueDest, FalseDest);
> 
> Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Tue Sep 27 15:39:19 2011
> @@ -617,7 +617,7 @@
> 
>     if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
>       // The load is a bit extract from NewAI shifted right by Offset bits.
> -      Value *LoadedVal = Builder.CreateLoad(NewAI, "tmp");
> +      Value *LoadedVal = Builder.CreateLoad(NewAI);
>       Value *NewLoadVal
>         = ConvertScalar_ExtractValue(LoadedVal, LI->getType(), Offset, Builder);
>       LI->replaceAllUsesWith(NewLoadVal);
> @@ -822,7 +822,7 @@
>       // a shuffle vector.
>       if (FromType->getPrimitiveSizeInBits() ==
>           ToType->getPrimitiveSizeInBits())
> -        return Builder.CreateBitCast(FromVal, ToType, "tmp");
> +        return Builder.CreateBitCast(FromVal, ToType);
>       else
>         return CreateShuffleVectorCast(FromVal, ToType, Builder);
>     }
> @@ -838,14 +838,14 @@
>       LLVMContext &Context = FromVal->getContext();
>       Type *CastTy = VectorType::get(CastElementTy,
>                                            NumCastVectorElements);
> -      Value *Cast = Builder.CreateBitCast(FromVal, CastTy, "tmp");
> +      Value *Cast = Builder.CreateBitCast(FromVal, CastTy);
> 
>       unsigned EltSize = TD.getTypeAllocSizeInBits(CastElementTy);
>       unsigned Elt = Offset/EltSize;
>       assert(EltSize*Elt == Offset && "Invalid modulus in validity checking");
>       Value *Extract = Builder.CreateExtractElement(Cast, ConstantInt::get(
> -                                        Type::getInt32Ty(Context), Elt), "tmp");
> -      return Builder.CreateBitCast(Extract, ToType, "tmp");
> +                                        Type::getInt32Ty(Context), Elt));
> +      return Builder.CreateBitCast(Extract, ToType);
>     }
> 
>     // Otherwise it must be an element access.
> @@ -856,10 +856,9 @@
>       assert(EltSize*Elt == Offset && "Invalid modulus in validity checking");
>     }
>     // Return the element extracted out of it.
> -    Value *V = Builder.CreateExtractElement(FromVal, ConstantInt::get(
> -                    Type::getInt32Ty(FromVal->getContext()), Elt), "tmp");
> +    Value *V = Builder.CreateExtractElement(FromVal, Builder.getInt32(Elt));
>     if (V->getType() != ToType)
> -      V = Builder.CreateBitCast(V, ToType, "tmp");
> +      V = Builder.CreateBitCast(V, ToType);
>     return V;
>   }
> 
> @@ -872,7 +871,7 @@
>       Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i),
>                                         Offset+Layout.getElementOffsetInBits(i),
>                                               Builder);
> -      Res = Builder.CreateInsertValue(Res, Elt, i, "tmp");
> +      Res = Builder.CreateInsertValue(Res, Elt, i);
>     }
>     return Res;
>   }
> @@ -883,7 +882,7 @@
>     for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) {
>       Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(),
>                                               Offset+i*EltSize, Builder);
> -      Res = Builder.CreateInsertValue(Res, Elt, i, "tmp");
> +      Res = Builder.CreateInsertValue(Res, Elt, i);
>     }
>     return Res;
>   }
> @@ -909,33 +908,31 @@
>   // only some bits are used.
>   if (ShAmt > 0 && (unsigned)ShAmt < NTy->getBitWidth())
>     FromVal = Builder.CreateLShr(FromVal,
> -                                 ConstantInt::get(FromVal->getType(),
> -                                                           ShAmt), "tmp");
> +                                 ConstantInt::get(FromVal->getType(), ShAmt));
>   else if (ShAmt < 0 && (unsigned)-ShAmt < NTy->getBitWidth())
>     FromVal = Builder.CreateShl(FromVal,
> -                                ConstantInt::get(FromVal->getType(),
> -                                                          -ShAmt), "tmp");
> +                                ConstantInt::get(FromVal->getType(), -ShAmt));
> 
>   // Finally, unconditionally truncate the integer to the right width.
>   unsigned LIBitWidth = TD.getTypeSizeInBits(ToType);
>   if (LIBitWidth < NTy->getBitWidth())
>     FromVal =
>       Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(),
> -                                                    LIBitWidth), "tmp");
> +                                                    LIBitWidth));
>   else if (LIBitWidth > NTy->getBitWidth())
>     FromVal =
>        Builder.CreateZExt(FromVal, IntegerType::get(FromVal->getContext(),
> -                                                    LIBitWidth), "tmp");
> +                                                    LIBitWidth));
> 
>   // If the result is an integer, this is a trunc or bitcast.
>   if (ToType->isIntegerTy()) {
>     // Should be done.
>   } else if (ToType->isFloatingPointTy() || ToType->isVectorTy()) {
>     // Just do a bitcast, we know the sizes match up.
> -    FromVal = Builder.CreateBitCast(FromVal, ToType, "tmp");
> +    FromVal = Builder.CreateBitCast(FromVal, ToType);
>   } else {
>     // Otherwise must be a pointer.
> -    FromVal = Builder.CreateIntToPtr(FromVal, ToType, "tmp");
> +    FromVal = Builder.CreateIntToPtr(FromVal, ToType);
>   }
>   assert(FromVal->getType() == ToType && "Didn't convert right?");
>   return FromVal;
> @@ -971,7 +968,7 @@
>       // a shuffle vector.
>       if (VTy->getPrimitiveSizeInBits() ==
>           SV->getType()->getPrimitiveSizeInBits())
> -        return Builder.CreateBitCast(SV, AllocaType, "tmp");
> +        return Builder.CreateBitCast(SV, AllocaType);
>       else
>         return CreateShuffleVectorCast(SV, VTy, Builder);
>     }
> @@ -984,36 +981,31 @@
>                                                        ValSize);
>       unsigned NumCastVectorElements = VecSize / ValSize;
> 
> -      LLVMContext &Context = SV->getContext();
> -      Type *OldCastTy = VectorType::get(CastElementTy,
> -                                              NumCastVectorElements);
> -      Value *OldCast = Builder.CreateBitCast(Old, OldCastTy, "tmp");
> +      Type *OldCastTy = VectorType::get(CastElementTy, NumCastVectorElements);
> +      Value *OldCast = Builder.CreateBitCast(Old, OldCastTy);
> 
> -      Value *SVCast = Builder.CreateBitCast(SV, CastElementTy, "tmp");
> +      Value *SVCast = Builder.CreateBitCast(SV, CastElementTy);
> 
>       unsigned EltSize = TD.getTypeAllocSizeInBits(CastElementTy);
>       unsigned Elt = Offset/EltSize;
>       assert(EltSize*Elt == Offset && "Invalid modulus in validity checking");
>       Value *Insert =
> -        Builder.CreateInsertElement(OldCast, SVCast, ConstantInt::get(
> -                                        Type::getInt32Ty(Context), Elt), "tmp");
> -      return Builder.CreateBitCast(Insert, AllocaType, "tmp");
> +        Builder.CreateInsertElement(OldCast, SVCast, Builder.getInt32(Elt));
> +      return Builder.CreateBitCast(Insert, AllocaType);
>     }
> 
>     // Must be an element insertion.
>     assert(SV->getType() == VTy->getElementType());
>     uint64_t EltSize = TD.getTypeAllocSizeInBits(VTy->getElementType());
>     unsigned Elt = Offset/EltSize;
> -    return Builder.CreateInsertElement(Old, SV,
> -                     ConstantInt::get(Type::getInt32Ty(SV->getContext()), Elt),
> -                                     "tmp");
> +    return Builder.CreateInsertElement(Old, SV, Builder.getInt32(Elt));
>   }
> 
>   // If SV is a first-class aggregate value, insert each value recursively.
>   if (StructType *ST = dyn_cast<StructType>(SV->getType())) {
>     const StructLayout &Layout = *TD.getStructLayout(ST);
>     for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) {
> -      Value *Elt = Builder.CreateExtractValue(SV, i, "tmp");
> +      Value *Elt = Builder.CreateExtractValue(SV, i);
>       Old = ConvertScalar_InsertValue(Elt, Old,
>                                       Offset+Layout.getElementOffsetInBits(i),
>                                       Builder);
> @@ -1024,7 +1016,7 @@
>   if (ArrayType *AT = dyn_cast<ArrayType>(SV->getType())) {
>     uint64_t EltSize = TD.getTypeAllocSizeInBits(AT->getElementType());
>     for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) {
> -      Value *Elt = Builder.CreateExtractValue(SV, i, "tmp");
> +      Value *Elt = Builder.CreateExtractValue(SV, i);
>       Old = ConvertScalar_InsertValue(Elt, Old, Offset+i*EltSize, Builder);
>     }
>     return Old;
> @@ -1037,20 +1029,19 @@
>   unsigned SrcStoreWidth = TD.getTypeStoreSizeInBits(SV->getType());
>   unsigned DestStoreWidth = TD.getTypeStoreSizeInBits(AllocaType);
>   if (SV->getType()->isFloatingPointTy() || SV->getType()->isVectorTy())
> -    SV = Builder.CreateBitCast(SV,
> -                            IntegerType::get(SV->getContext(),SrcWidth), "tmp");
> +    SV = Builder.CreateBitCast(SV, IntegerType::get(SV->getContext(),SrcWidth));
>   else if (SV->getType()->isPointerTy())
> -    SV = Builder.CreatePtrToInt(SV, TD.getIntPtrType(SV->getContext()), "tmp");
> +    SV = Builder.CreatePtrToInt(SV, TD.getIntPtrType(SV->getContext()));
> 
>   // Zero extend or truncate the value if needed.
>   if (SV->getType() != AllocaType) {
>     if (SV->getType()->getPrimitiveSizeInBits() <
>              AllocaType->getPrimitiveSizeInBits())
> -      SV = Builder.CreateZExt(SV, AllocaType, "tmp");
> +      SV = Builder.CreateZExt(SV, AllocaType);
>     else {
>       // Truncation may be needed if storing more than the alloca can hold
>       // (undefined behavior).
> -      SV = Builder.CreateTrunc(SV, AllocaType, "tmp");
> +      SV = Builder.CreateTrunc(SV, AllocaType);
>       SrcWidth = DestWidth;
>       SrcStoreWidth = DestStoreWidth;
>     }
> @@ -1073,12 +1064,10 @@
>   // only some bits in the structure are set.
>   APInt Mask(APInt::getLowBitsSet(DestWidth, SrcWidth));
>   if (ShAmt > 0 && (unsigned)ShAmt < DestWidth) {
> -    SV = Builder.CreateShl(SV, ConstantInt::get(SV->getType(),
> -                           ShAmt), "tmp");
> +    SV = Builder.CreateShl(SV, ConstantInt::get(SV->getType(), ShAmt));
>     Mask <<= ShAmt;
>   } else if (ShAmt < 0 && (unsigned)-ShAmt < DestWidth) {
> -    SV = Builder.CreateLShr(SV, ConstantInt::get(SV->getType(),
> -                            -ShAmt), "tmp");
> +    SV = Builder.CreateLShr(SV, ConstantInt::get(SV->getType(), -ShAmt));
>     Mask = Mask.lshr(-ShAmt);
>   }
> 
> 
> Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp Tue Sep 27 15:39:19 2011
> @@ -874,8 +874,8 @@
>                                          Callee->getAttributes());
>       Value *FAbs = EmitUnaryFloatFnCall(Sqrt, "fabs", B,
>                                          Callee->getAttributes());
> -      Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf, "tmp");
> -      Value *Sel = B.CreateSelect(FCmp, Inf, FAbs, "tmp");
> +      Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf);
> +      Value *Sel = B.CreateSelect(FCmp, Inf, FAbs);
>       return Sel;
>     }
> 
> @@ -908,10 +908,10 @@
>     Value *LdExpArg = 0;
>     if (SIToFPInst *OpC = dyn_cast<SIToFPInst>(Op)) {
>       if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() <= 32)
> -        LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty(), "tmp");
> +        LdExpArg = B.CreateSExt(OpC->getOperand(0), B.getInt32Ty());
>     } else if (UIToFPInst *OpC = dyn_cast<UIToFPInst>(Op)) {
>       if (OpC->getOperand(0)->getType()->getPrimitiveSizeInBits() < 32)
> -        LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty(), "tmp");
> +        LdExpArg = B.CreateZExt(OpC->getOperand(0), B.getInt32Ty());
>     }
> 
>     if (LdExpArg) {
> @@ -996,10 +996,10 @@
>     Value *F = Intrinsic::getDeclaration(Callee->getParent(),
>                                          Intrinsic::cttz, ArgType);
>     Value *V = B.CreateCall(F, Op, "cttz");
> -    V = B.CreateAdd(V, ConstantInt::get(V->getType(), 1), "tmp");
> -    V = B.CreateIntCast(V, B.getInt32Ty(), false, "tmp");
> +    V = B.CreateAdd(V, ConstantInt::get(V->getType(), 1));
> +    V = B.CreateIntCast(V, B.getInt32Ty(), false);
> 
> -    Value *Cond = B.CreateICmpNE(Op, Constant::getNullValue(ArgType), "tmp");
> +    Value *Cond = B.CreateICmpNE(Op, Constant::getNullValue(ArgType));
>     return B.CreateSelect(Cond, V, B.getInt32(0));
>   }
> };
> 
> Modified: llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp (original)
> +++ llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp Tue Sep 27 15:39:19 2011
> @@ -221,8 +221,7 @@
>       return;
> 
>     ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ,
> -                                  Rem->getOperand(0), Rem->getOperand(1),
> -                                  "tmp");
> +                                  Rem->getOperand(0), Rem->getOperand(1));
>     SelectInst *Sel =
>       SelectInst::Create(ICmp,
>                          ConstantInt::get(Rem->getType(), 0),
> 
> Modified: llvm/trunk/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll (original)
> +++ llvm/trunk/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll Tue Sep 27 15:39:19 2011
> @@ -1,5 +1,5 @@
> ; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
> -; CHECK: %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 2, i64 %tmp, i64 1
> +; CHECK: %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 2, i64 %0, i64 1
> target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n:32:64"
> 
> ; Indvars shouldn't expand this to
> 
> Modified: llvm/trunk/test/Transforms/InstCombine/call.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/call.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/InstCombine/call.ll (original)
> +++ llvm/trunk/test/Transforms/InstCombine/call.ll Tue Sep 27 15:39:19 2011
> @@ -9,8 +9,8 @@
> define void @test1(i32* %A) {
>         call void bitcast (void (i8*)* @test1a to void (i32*)*)( i32* %A )
>         ret void
> -; CHECK: %tmp = bitcast i32* %A to i8*
> -; CHECK: call void @test1a(i8* %tmp)
> +; CHECK: %1 = bitcast i32* %A to i8*
> +; CHECK: call void @test1a(i8* %1)
> ; CHECK: ret void
> }
> 
> @@ -24,8 +24,8 @@
> define i32 @test2(i32 %A) {
>         call void bitcast (void (i8)* @test2a to void (i32)*)( i32 %A )
>         ret i32 %A
> -; CHECK: %tmp = trunc i32 %A to i8
> -; CHECK: call void @test2a(i8 %tmp)
> +; CHECK: %1 = trunc i32 %A to i8
> +; CHECK: call void @test2a(i8 %1)
> ; CHECK: ret i32 %A
> }
> 
> @@ -38,8 +38,8 @@
>         call void bitcast (void (i8, ...)* @test3a to void (i8, i8)*)( i8 %A, i8 %B 
> )
>         ret void
> -; CHECK: %tmp = zext i8 %B to i32
> -; CHECK: call void (i8, ...)* @test3a(i8 %A, i32 %tmp)
> +; CHECK: %1 = zext i8 %B to i32
> +; CHECK: call void (i8, ...)* @test3a(i8 %A, i32 %1)
> ; CHECK: ret void
> }
> 
> @@ -54,8 +54,8 @@
>         %X = call i32 bitcast (i8 ()* @test4a to i32 ()*)( )            ; <i32> [#uses=1]
>         ret i32 %X
> ; CHECK: %X = call i8 @test4a()
> -; CHECK: %tmp = zext i8 %X to i32
> -; CHECK: ret i32 %tmp
> +; CHECK: %1 = zext i8 %X to i32
> +; CHECK: ret i32 %1
> }
> 
> 
> 
> Modified: llvm/trunk/test/Transforms/InstCombine/ptr-int-cast.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/ptr-int-cast.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/InstCombine/ptr-int-cast.ll (original)
> +++ llvm/trunk/test/Transforms/InstCombine/ptr-int-cast.ll Tue Sep 27 15:39:19 2011
> @@ -5,22 +5,22 @@
> entry:
> ; CHECK: test1
> ; CHECK: ptrtoint i32* %x to i64
> -	%tmp = ptrtoint i32* %x to i1
> -	ret i1 %tmp
> +	%0 = ptrtoint i32* %x to i1
> +	ret i1 %0
> }
> 
> define i32* @test2(i128 %x) nounwind {
> entry:
> ; CHECK: test2
> -; CHECK: inttoptr i64 %tmp1 to i32*
> -	%tmp = inttoptr i128 %x to i32*
> -	ret i32* %tmp
> +; CHECK: inttoptr i64 %0 to i32*
> +	%0 = inttoptr i128 %x to i32*
> +	ret i32* %0
> }
> 
> ; PR3574
> ; CHECK: f0
> -; CHECK: %tmp = zext i32 %a0 to i64
> -; CHECK: ret i64 %tmp
> +; CHECK: %1 = zext i32 %a0 to i64
> +; CHECK: ret i64 %1
> define i64 @f0(i32 %a0) nounwind {
>        %t0 = inttoptr i32 %a0 to i8*
>        %t1 = ptrtoint i8* %t0 to i64
> 
> Modified: llvm/trunk/test/Transforms/InstCombine/vector-casts.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/vector-casts.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/InstCombine/vector-casts.ll (original)
> +++ llvm/trunk/test/Transforms/InstCombine/vector-casts.ll Tue Sep 27 15:39:19 2011
> @@ -7,7 +7,7 @@
> 
> ; CHECK: @test1
> ; CHECK:   and <2 x i64> %a, <i64 1, i64 1>
> -; CHECK:   icmp ne <2 x i64> %tmp, zeroinitializer
> +; CHECK:   icmp ne <2 x i64> %1, zeroinitializer
> }
> 
> ; The ashr turns into an lshr.
> 
> Modified: llvm/trunk/test/Transforms/LoopIdiom/basic.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopIdiom/basic.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/LoopIdiom/basic.ll (original)
> +++ llvm/trunk/test/Transforms/LoopIdiom/basic.ll Tue Sep 27 15:39:19 2011
> @@ -62,8 +62,8 @@
>   ret void
> ; CHECK: @test2
> ; CHECK: br i1 %cmp10,
> -; CHECK: %tmp = mul i64 %Size, 4
> -; CHECK: call void @llvm.memset.p0i8.i64(i8* %Base1, i8 1, i64 %tmp, i32 4, i1 false)
> +; CHECK: %0 = mul i64 %Size, 4
> +; CHECK: call void @llvm.memset.p0i8.i64(i8* %Base1, i8 1, i64 %0, i32 4, i1 false)
> ; CHECK-NOT: store
> }
> 
> 
> Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll (original)
> +++ llvm/trunk/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll Tue Sep 27 15:39:19 2011
> @@ -4,15 +4,15 @@
> ; LSR should property handle the post-inc offset when folding the
> ; non-IV operand of an icmp into the IV.
> 
> -; CHECK:   %tmp2 = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast
> -; CHECK:   %tmp3 = lshr i64 %tmp2, 1
> -; CHECK:   %tmp4 = mul i64 %tmp3, 2
> +; CHECK:   %5 = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast
> +; CHECK:   %6 = lshr i64 %5, 1
> +; CHECK:   %7 = mul i64 %6, 2
> ; CHECK:   br label %for.body
> ; CHECK: for.body:
> -; CHECK:   %lsr.iv5 = phi i64 [ %lsr.iv.next, %for.body ], [ %tmp4, %for.body.lr.ph ]
> -; CHECK:   %lsr.iv.next = add i64 %lsr.iv5, -2
> -; CHECK:   %lsr.iv.next6 = inttoptr i64 %lsr.iv.next to i16*
> -; CHECK:   %cmp27 = icmp eq i16* %lsr.iv.next6, null
> +; CHECK:   %lsr.iv2 = phi i64 [ %lsr.iv.next, %for.body ], [ %7, %for.body.lr.ph ]
> +; CHECK:   %lsr.iv.next = add i64 %lsr.iv2, -2
> +; CHECK:   %lsr.iv.next3 = inttoptr i64 %lsr.iv.next to i16*
> +; CHECK:   %cmp27 = icmp eq i16* %lsr.iv.next3, null
> 
> target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
> target triple = "x86_64-unknown-linux-gnu"
> 
> Modified: llvm/trunk/test/Transforms/ScalarRepl/vector_promote.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ScalarRepl/vector_promote.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/ScalarRepl/vector_promote.ll (original)
> +++ llvm/trunk/test/Transforms/ScalarRepl/vector_promote.ll Tue Sep 27 15:39:19 2011
> @@ -110,7 +110,7 @@
> ; CHECK-NOT: alloca
> ; CHECK: bitcast <4 x float> %x to <2 x double>
> ; CHECK-NEXT: extractelement <2 x double>
> -; CHECK-NEXT: bitcast double %tmp4 to <2 x float>
> +; CHECK-NEXT: bitcast double %2 to <2 x float>
> ; CHECK-NEXT: extractelement <4 x float>
> }
> 
> @@ -125,7 +125,7 @@
> ; CHECK: bitcast <4 x float> %x to <2 x double>
> ; CHECK-NEXT: bitcast <2 x float> %y to double
> ; CHECK-NEXT: insertelement <2 x double>
> -; CHECK-NEXT: bitcast <2 x double> %tmp2 to <4 x float>
> +; CHECK-NEXT: bitcast <2 x double> %3 to <4 x float>
> }
> 
> define i256 @test9(<4 x i256> %x) {
> @@ -140,7 +140,7 @@
> ; CHECK-NOT: alloca
> ; CHECK: bitcast <4 x i256> %x to <2 x i512>
> ; CHECK-NEXT: extractelement <2 x i512>
> -; CHECK-NEXT: bitcast i512 %tmp4 to <2 x i256>
> +; CHECK-NEXT: bitcast i512 %2 to <2 x i256>
> ; CHECK-NEXT: extractelement <4 x i256>
> }
> 
> @@ -155,7 +155,7 @@
> ; CHECK: bitcast <4 x i256> %x to <2 x i512>
> ; CHECK-NEXT: bitcast <2 x i256> %y to i512
> ; CHECK-NEXT: insertelement <2 x i512>
> -; CHECK-NEXT: bitcast <2 x i512> %tmp2 to <4 x i256>
> +; CHECK-NEXT: bitcast <2 x i512> %3 to <4 x i256>
> }
> 
> %union.v = type { <2 x i64> }
> @@ -245,7 +245,7 @@
>   ret void
> ; CHECK: @test15
> ; CHECK-NOT: alloca
> -; CHECK: shufflevector <4 x i64> %tmpV2, <4 x i64> undef, <3 x i32> <i32 0, i32 1, i32 2>
> +; CHECK: shufflevector <4 x i64> %tmpV1, <4 x i64> undef, <3 x i32> <i32 0, i32 1, i32 2>
> }
> 
> define <4 x float> @test16(<4 x float> %x, i64 %y0, i64 %y1) {
> 
> Modified: llvm/trunk/test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll?rev=140634&r1=140633&r2=140634&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll (original)
> +++ llvm/trunk/test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll Tue Sep 27 15:39:19 2011
> @@ -7,9 +7,9 @@
> ; CHECK: define float @foo(float %x) nounwind {
> ; CHECK:   %sqrtf = call float @sqrtf(float %x) nounwind readonly
> ; CHECK:   %fabsf = call float @fabsf(float %sqrtf) nounwind readonly
> -; CHECK:   %tmp = fcmp oeq float %x, 0xFFF0000000000000
> -; CHECK:   %tmp1 = select i1 %tmp, float 0x7FF0000000000000, float %fabsf
> -; CHECK:   ret float %tmp1
> +; CHECK:   %1 = fcmp oeq float %x, 0xFFF0000000000000
> +; CHECK:   %retval = select i1 %1, float 0x7FF0000000000000, float %fabsf
> +; CHECK:   ret float %retval
> 
> define float @foo(float %x) nounwind {
>   %retval = call float @powf(float %x, float 0.5)
> @@ -19,9 +19,9 @@
> ; CHECK: define double @doo(double %x) nounwind {
> ; CHECK:   %sqrt = call double @sqrt(double %x) nounwind readonly
> ; CHECK:   %fabs = call double @fabs(double %sqrt) nounwind readonly
> -; CHECK:   %tmp = fcmp oeq double %x, 0xFFF0000000000000
> -; CHECK:   %tmp1 = select i1 %tmp, double 0x7FF0000000000000, double %fabs
> -; CHECK:   ret double %tmp1
> +; CHECK:   %1 = fcmp oeq double %x, 0xFFF0000000000000
> +; CHECK:   %retval = select i1 %1, double 0x7FF0000000000000, double %fabs
> +; CHECK:   ret double %retval
> ; CHECK: }
> 
> define double @doo(double %x) nounwind {
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list