[llvm] 7eb2134 - RegionInfo.cpp - remove duplicate includes that already exist in RegionInfo.h. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 09:50:45 PDT 2020


Author: Simon Pilgrim
Date: 2020-07-23T17:50:22+01:00
New Revision: 7eb213499ebd2c7507ec53ed8764fa104d012b94

URL: https://github.com/llvm/llvm-project/commit/7eb213499ebd2c7507ec53ed8764fa104d012b94
DIFF: https://github.com/llvm/llvm-project/commit/7eb213499ebd2c7507ec53ed8764fa104d012b94.diff

LOG: RegionInfo.cpp - remove duplicate includes that already exist in RegionInfo.h. NFC.

Also remove some unnecessary forward declarations in RegionInfo.h.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/RegionInfo.h
    llvm/lib/Analysis/RegionInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/RegionInfo.h b/llvm/include/llvm/Analysis/RegionInfo.h
index b0336c559774..f93081d6f51d 100644
--- a/llvm/include/llvm/Analysis/RegionInfo.h
+++ b/llvm/include/llvm/Analysis/RegionInfo.h
@@ -59,7 +59,6 @@
 namespace llvm {
 
 class DominanceFrontier;
-class DominatorTree;
 class Loop;
 class LoopInfo;
 class PostDominatorTree;
@@ -877,8 +876,6 @@ class RegionInfoBase {
   void verifyAnalysis() const;
 };
 
-class Region;
-
 class RegionNode : public RegionNodeBase<RegionTraits<Function>> {
 public:
   inline RegionNode(Region *Parent, BasicBlock *Entry, bool isSubRegion = false)

diff  --git a/llvm/lib/Analysis/RegionInfo.cpp b/llvm/lib/Analysis/RegionInfo.cpp
index 88629517d484..3ba0bb9eaf2c 100644
--- a/llvm/lib/Analysis/RegionInfo.cpp
+++ b/llvm/lib/Analysis/RegionInfo.cpp
@@ -17,11 +17,8 @@
 #include "llvm/Analysis/RegionInfoImpl.h"
 #include "llvm/Config/llvm-config.h"
 #include "llvm/IR/Function.h"
-#include "llvm/IR/PassManager.h"
-#include "llvm/Pass.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Compiler.h"
-#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list