[llvm] r275238 - Remove another unused variable from r275216

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 16:49:17 PDT 2016


Author: tejohnson
Date: Tue Jul 12 18:49:17 2016
New Revision: 275238

URL: http://llvm.org/viewvc/llvm-project?rev=275238&view=rev
Log:
Remove another unused variable from r275216

Remove another variable added in r275216 that was only used in debug
mode.

Modified:
    llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp?rev=275238&r1=275237&r2=275238&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/IndirectCallPromotionAnalysis.cpp Tue Jul 12 18:49:17 2016
@@ -81,9 +81,8 @@ uint32_t ICallPromotionAnalysis::getProf
   for (; I < MaxNumPromotions && I < NumVals; I++) {
     uint64_t Count = ValueDataRef[I].Count;
     assert(Count <= TotalCount);
-    uint64_t Target = ValueDataRef[I].Value;
     DEBUG(dbgs() << " Candidate " << I << " Count=" << Count
-                 << "  Target_func: " << Target << "\n");
+                 << "  Target_func: " << ValueDataRef[I].Value << "\n");
 
     if (!isPromotionProfitable(Count, TotalCount)) {
       DEBUG(dbgs() << " Not promote: Cold target.\n");




More information about the llvm-commits mailing list