Author: Kazu Hirata
Date: 2020-12-20T09:57:05-08:00
New Revision: 5d24935f220d3f3e6b95fcc092a839c63e2783b6

URL: 
https://github.com/llvm/llvm-project/commit/5d24935f220d3f3e6b95fcc092a839c63e2783b6
DIFF: 
https://github.com/llvm/llvm-project/commit/5d24935f220d3f3e6b95fcc092a839c63e2783b6.diff

LOG: [PGO] Remove dead member variable InstrumentFuncEntry (NFC)

This patch removes InstrumentFuncEntry as it is dead.

The constructor of FuncPGOInstrumentation passes InstrumentFuncEntry
to MST, but it doesn't make a local copy as a member variable.

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp 
b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index 68a313d49325..17ccf3ab989a 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -563,9 +563,6 @@ template <class Edge, class BBInfo> class 
FuncPGOInstrumentation {
   // Is this is context-sensitive instrumentation.
   bool IsCS;
 
-  // If we instrument function entry BB by default.
-  bool InstrumentFuncEntry;
-
   // A map that stores the Comdat group in function F.
   std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers;
 


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to