[llvm-commits] [llvm] r60508 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Dale Johannesen dalej at apple.com
Wed Dec 3 14:44:07 PST 2008


Author: johannes
Date: Wed Dec  3 16:43:56 2008
New Revision: 60508

URL: http://llvm.org/viewvc/llvm-project?rev=60508&view=rev
Log:
Remove an unused field.


Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=60508&r1=60507&r2=60508&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Wed Dec  3 16:43:56 2008
@@ -542,10 +542,6 @@
     /// instruction.
     SCEVHandle Imm;
 
-    /// EmittedBase - The actual value* to use for the base value of this
-    /// operation.  This is null if we should just use zero so far.
-    Value *EmittedBase;
-
     // isUseOfPostIncrementedValue - True if this should use the
     // post-incremented version of this IV, not the preincremented version.
     // This can only be set in special cases, such as the terminating setcc
@@ -556,7 +552,7 @@
     BasedUser(IVStrideUse &IVSU, ScalarEvolution *se)
       : SE(se), Base(IVSU.Offset), Inst(IVSU.User), 
         OperandValToReplace(IVSU.OperandValToReplace), 
-        Imm(SE->getIntegerSCEV(0, Base->getType())), EmittedBase(0),
+        Imm(SE->getIntegerSCEV(0, Base->getType())), 
         isUseOfPostIncrementedValue(IVSU.isUseOfPostIncrementedValue) {}
 
     // Once we rewrite the code to insert the new IVs we want, update the
@@ -577,9 +573,6 @@
 void BasedUser::dump() const {
   cerr << " Base=" << *Base;
   cerr << " Imm=" << *Imm;
-  if (EmittedBase)
-    cerr << "  EB=" << *EmittedBase;
-
   cerr << "   Inst: " << *Inst;
 }
 





More information about the llvm-commits mailing list