[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp TraceBasicBlocks.cpp

Reid Spencer reid at x10sys.com
Thu Nov 2 12:27:05 PST 2006



Changes in directory llvm/lib/Transforms/Instrumentation:

RSProfiling.cpp updated: 1.8 -> 1.9
TraceBasicBlocks.cpp updated: 1.16 -> 1.17
---
Log message:

For PR786: http://llvm.org/PR786 :
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining 
issues when they see them. All changes pass DejaGnu tests and Olden.


---
Diffs of the changes:  (+1 -2)

 RSProfiling.cpp      |    1 -
 TraceBasicBlocks.cpp |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.8 llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.9
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.8	Fri Oct 20 02:07:24 2006
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp	Thu Nov  2 14:25:50 2006
@@ -580,7 +580,6 @@
   for(BasicBlock::iterator ib = btarget->begin(), ie = btarget->end();
       ib != ie; ++ib)
     if (PHINode* phi = dyn_cast<PHINode>(&*ib)) {
-      unsigned total = phi->getNumIncomingValues();
       std::map<BasicBlock*, Value*> counter;
       for(unsigned i = 0; i < phi->getNumIncomingValues(); ) {
         if (counter[phi->getIncomingBlock(i)]) {


Index: llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.16 llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.17
--- llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp:1.16	Fri Oct 20 02:07:24 2006
+++ llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp	Thu Nov  2 14:25:50 2006
@@ -56,7 +56,7 @@
   while (isa<AllocaInst>(InsertPos) || isa<PHINode>(InsertPos))
     ++InsertPos;
 
-  Instruction *InstrCall = new CallInst (InstrFn, Args, "", InsertPos);
+  new CallInst (InstrFn, Args, "", InsertPos);
 }
 
 bool TraceBasicBlocks::runOnModule(Module &M) {






More information about the llvm-commits mailing list