[llvm] 5b20c14 - ValueProfileCollector.h - remove unnecessary includes. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 04:33:31 PDT 2020


Author: Simon Pilgrim
Date: 2020-07-23T12:33:13+01:00
New Revision: 5b20c14525ef369d40d7d252039ded22e4dcec6c

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

LOG: ValueProfileCollector.h - remove unnecessary includes. NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
    llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp b/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
index cd4f636ff132..fb6216bb2177 100644
--- a/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
@@ -11,10 +11,10 @@
 //===----------------------------------------------------------------------===//
 
 #include "ValueProfilePlugins.inc"
+#include "llvm/IR/Function.h"
 #include "llvm/IR/InstIterator.h"
 #include "llvm/IR/IntrinsicInst.h"
 #include "llvm/InitializePasses.h"
-
 #include <cassert>
 
 using namespace llvm;

diff  --git a/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h b/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h
index c3f549c2e7cc..584a60ab451e 100644
--- a/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h
+++ b/llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h
@@ -17,13 +17,16 @@
 #define LLVM_ANALYSIS_PROFILE_GEN_ANALYSIS_H
 
 #include "llvm/Analysis/TargetLibraryInfo.h"
-#include "llvm/IR/Function.h"
-#include "llvm/IR/PassManager.h"
-#include "llvm/Pass.h"
 #include "llvm/ProfileData/InstrProf.h"
+#include <memory>
+#include <vector>
 
 namespace llvm {
 
+class Function;
+class Instruction;
+class Value;
+
 /// Utility analysis that determines what values are worth profiling.
 /// The actual logic is inside the ValueProfileCollectorImpl, whose job is to
 /// populate the Candidates vector.


        


More information about the llvm-commits mailing list