diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-12-07 21:20:17 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-12-07 21:20:17 +0000 |
commit | 7ae72bfd9470e5f91e43652cafe15e0c56b4b3d1 (patch) | |
tree | 25f6dde71732d628c183a5da0e73da9f23029c30 /include | |
parent | f7f74c22b1470aa62e891010fc1fb9f7879ab232 (diff) | |
download | llvm-7ae72bfd9470e5f91e43652cafe15e0c56b4b3d1.tar.gz llvm-7ae72bfd9470e5f91e43652cafe15e0c56b4b3d1.tar.bz2 llvm-7ae72bfd9470e5f91e43652cafe15e0c56b4b3d1.tar.xz |
Don't #include heavy Dominators.h file in LoopInfo.h. This change reduces
overall time of LLVM compilation by ~1%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 5 | ||||
-rw-r--r-- | include/llvm/Analysis/LoopInfoImpl.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineLoopInfo.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 582c97cf56..0fb21aa4e4 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -33,8 +33,10 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/GraphTraits.h" +#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/Analysis/Dominators.h" +#include "llvm/IR/Instruction.h" +#include "llvm/Support/CFG.h" #include "llvm/Pass.h" #include <algorithm> @@ -53,6 +55,7 @@ class Loop; class MDNode; class PHINode; class raw_ostream; +template<class N> class DominatorTreeBase; template<class N, class M> class LoopInfoBase; template<class N, class M> class LoopBase; diff --git a/include/llvm/Analysis/LoopInfoImpl.h b/include/llvm/Analysis/LoopInfoImpl.h index c98cb58910..934f7cf9a0 100644 --- a/include/llvm/Analysis/LoopInfoImpl.h +++ b/include/llvm/Analysis/LoopInfoImpl.h @@ -15,8 +15,10 @@ #ifndef LLVM_ANALYSIS_LOOPINFOIMPL_H #define LLVM_ANALYSIS_LOOPINFOIMPL_H +#include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/PostOrderIterator.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/Analysis/Dominators.h" #include "llvm/Analysis/LoopInfo.h" namespace llvm { diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index b058ecb4c2..4b8e245840 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -31,6 +31,7 @@ #define LLVM_CODEGEN_MACHINELOOPINFO_H #include "llvm/Analysis/LoopInfo.h" +#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineFunctionPass.h" namespace llvm { |