From 4d5906e0bf27b7aea451cf60e0d38a01f9b96085 Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Tue, 12 Sep 2023 18:20:47 +0200 Subject: [PATCH] [llvm][unittests] Remove unneeded header includes --- llvm/unittests/Analysis/ScalarEvolutionTest.cpp | 1 - llvm/unittests/Analysis/TBAATest.cpp | 3 --- .../unittests/Analysis/TargetLibraryInfoTest.cpp | 1 - .../Transforms/Utils/BasicBlockUtilsTest.cpp | 1 - .../Transforms/Utils/ProfDataUtilTest.cpp | 16 +++------------- 5 files changed, 3 insertions(+), 19 deletions(-) diff --git a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp index 425e7292b1a581..1053c1bdff07fb 100644 --- a/llvm/unittests/Analysis/ScalarEvolutionTest.cpp +++ b/llvm/unittests/Analysis/ScalarEvolutionTest.cpp @@ -19,7 +19,6 @@ #include "llvm/IR/IRBuilder.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/LLVMContext.h" -#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" #include "llvm/IR/Verifier.h" #include "llvm/Support/SourceMgr.h" diff --git a/llvm/unittests/Analysis/TBAATest.cpp b/llvm/unittests/Analysis/TBAATest.cpp index b42542e5064e92..3367aefcd608f0 100644 --- a/llvm/unittests/Analysis/TBAATest.cpp +++ b/llvm/unittests/Analysis/TBAATest.cpp @@ -6,12 +6,9 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Analysis/AliasAnalysisEvaluator.h" -#include "llvm/Analysis/Passes.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" -#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/MDBuilder.h" #include "llvm/IR/Module.h" #include "llvm/IR/Verifier.h" diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index b91c2617c50772..8c2328ee1c9be3 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -9,7 +9,6 @@ #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/AsmParser/Parser.h" #include "llvm/IR/LLVMContext.h" -#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" diff --git a/llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp b/llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp index cf891315881a7e..2da38c60044beb 100644 --- a/llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp +++ b/llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp @@ -23,7 +23,6 @@ #include "llvm/IR/Dominators.h" #include "llvm/IR/LLVMContext.h" #include "llvm/Support/SourceMgr.h" -#include "llvm/Transforms/Utils/BreakCriticalEdges.h" #include "gtest/gtest.h" using namespace llvm; diff --git a/llvm/unittests/Transforms/Utils/ProfDataUtilTest.cpp b/llvm/unittests/Transforms/Utils/ProfDataUtilTest.cpp index f32108a7e058d5..46a3ecd5d3aa36 100644 --- a/llvm/unittests/Transforms/Utils/ProfDataUtilTest.cpp +++ b/llvm/unittests/Transforms/Utils/ProfDataUtilTest.cpp @@ -6,24 +6,14 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Analysis/AssumptionCache.h" -#include "llvm/Analysis/BasicAliasAnalysis.h" -#include "llvm/Analysis/BlockFrequencyInfo.h" -#include "llvm/Analysis/BranchProbabilityInfo.h" -#include "llvm/Analysis/CFG.h" -#include "llvm/Analysis/DomTreeUpdater.h" -#include "llvm/Analysis/LoopInfo.h" -#include "llvm/Analysis/MemorySSA.h" -#include "llvm/Analysis/MemorySSAUpdater.h" -#include "llvm/Analysis/PostDominators.h" -#include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/AsmParser/Parser.h" #include "llvm/IR/BasicBlock.h" -#include "llvm/IR/Dominators.h" +#include "llvm/IR/Function.h" +#include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" +#include "llvm/IR/Module.h" #include "llvm/IR/ProfDataUtils.h" #include "llvm/Support/SourceMgr.h" -#include "llvm/Transforms/Utils/BreakCriticalEdges.h" #include "gtest/gtest.h" using namespace llvm;