[llvm] 0c4c961 - [LinkAllPasses] Remove unused header includes. NFCI

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 06:24:50 PDT 2023


Author: Bjorn Pettersson
Date: 2023-08-16T15:24:19+02:00
New Revision: 0c4c961008527f7055675b5a78e57927d20cf0c2

URL: https://github.com/llvm/llvm-project/commit/0c4c961008527f7055675b5a78e57927d20cf0c2
DIFF: https://github.com/llvm/llvm-project/commit/0c4c961008527f7055675b5a78e57927d20cf0c2.diff

LOG: [LinkAllPasses] Remove unused header includes. NFCI

This patch removes some includes from LinkAllPasses.h, that appears
to be unused. Those should have been removed earlier when the
corresponding legacy PM passes were removed.

InstSimplifyPass is a bit special since the legacy PM version of the
pass still exists. But since createInstSimplifyLegacyPass is defined
in Scalar.h and not in InstSimplifyPass.h that particular include
isn't needed anyway.

Added: 
    

Modified: 
    llvm/include/llvm/LinkAllPasses.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/LinkAllPasses.h b/llvm/include/llvm/LinkAllPasses.h
index 7420ea64e95435..081a15077e7be4 100644
--- a/llvm/include/llvm/LinkAllPasses.h
+++ b/llvm/include/llvm/LinkAllPasses.h
@@ -22,7 +22,6 @@
 #include "llvm/Analysis/DomPrinter.h"
 #include "llvm/Analysis/GlobalsModRef.h"
 #include "llvm/Analysis/IntervalPartition.h"
-#include "llvm/Analysis/Lint.h"
 #include "llvm/Analysis/Passes.h"
 #include "llvm/Analysis/PostDominators.h"
 #include "llvm/Analysis/RegionPass.h"
@@ -36,18 +35,12 @@
 #include "llvm/IR/Function.h"
 #include "llvm/IR/IRPrintingPasses.h"
 #include "llvm/Support/Valgrind.h"
-#include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h"
 #include "llvm/Transforms/IPO.h"
 #include "llvm/Transforms/IPO/AlwaysInliner.h"
-#include "llvm/Transforms/IPO/Attributor.h"
-#include "llvm/Transforms/IPO/FunctionAttrs.h"
 #include "llvm/Transforms/InstCombine/InstCombine.h"
-#include "llvm/Transforms/Instrumentation.h"
-#include "llvm/Transforms/Instrumentation/BoundsChecking.h"
 #include "llvm/Transforms/ObjCARC.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/Scalar/GVN.h"
-#include "llvm/Transforms/Scalar/InstSimplifyPass.h"
 #include "llvm/Transforms/Scalar/Scalarizer.h"
 #include "llvm/Transforms/Utils.h"
 #include "llvm/Transforms/Utils/SymbolRewriter.h"


        


More information about the llvm-commits mailing list