Skip to content

Commit ef2531b

Browse files
[llvm-reduce] Remove unused includes (NFC) (llvm#141322)
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
1 parent 92cebab commit ef2531b

18 files changed

+0
-27
lines changed

llvm/tools/llvm-reduce/ReducerWorkItem.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/CodeGen/MachineDominators.h"
1919
#include "llvm/CodeGen/MachineFrameInfo.h"
2020
#include "llvm/CodeGen/MachineFunction.h"
21-
#include "llvm/CodeGen/MachineFunctionPass.h"
2221
#include "llvm/CodeGen/MachineJumpTableInfo.h"
2322
#include "llvm/CodeGen/MachineModuleInfo.h"
2423
#include "llvm/CodeGen/MachineRegisterInfo.h"

llvm/tools/llvm-reduce/deltas/Delta.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "TestRunner.h"
1919
#include "Utils.h"
2020
#include "llvm/ADT/STLExtras.h"
21-
#include "llvm/Analysis/ModuleSummaryAnalysis.h"
22-
#include "llvm/Analysis/ProfileSummaryInfo.h"
2321
#include "llvm/Bitcode/BitcodeReader.h"
2422
#include "llvm/Bitcode/BitcodeWriter.h"
2523
#include "llvm/CodeGen/MachineFunction.h"
@@ -31,7 +29,6 @@
3129
#include "llvm/Support/MemoryBufferRef.h"
3230
#include "llvm/Support/ThreadPool.h"
3331
#include "llvm/Support/WithColor.h"
34-
#include <fstream>
3532

3633
using namespace llvm;
3734

llvm/tools/llvm-reduce/deltas/ReduceAliases.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "ReduceAliases.h"
15-
#include "Utils.h"
16-
#include "llvm/IR/Constants.h"
1715
#include "llvm/IR/GlobalValue.h"
1816
#include "llvm/Transforms/Utils/ModuleUtils.h"
1917

llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "ReduceArguments.h"
1515
#include "Utils.h"
1616
#include "llvm/ADT/SmallVector.h"
17-
#include "llvm/IR/Constants.h"
1817
#include "llvm/IR/FMF.h"
1918
#include "llvm/IR/Instructions.h"
2019
#include "llvm/IR/Intrinsics.h"

llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
#include "ReduceBasicBlocks.h"
1515
#include "Utils.h"
16-
#include "llvm/ADT/DenseSet.h"
1716
#include "llvm/IR/BasicBlock.h"
18-
#include "llvm/IR/Constants.h"
1917
#include "llvm/IR/Instruction.h"
2018
#include "llvm/IR/Instructions.h"
2119
#include "llvm/IR/LLVMContext.h"

llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "ReduceDIMetadata.h"
15-
#include "llvm/ADT/Sequence.h"
1615
#include "llvm/ADT/SetVector.h"
1716
#include "llvm/ADT/SmallVector.h"
1817
#include "llvm/IR/DebugInfoMetadata.h"

llvm/tools/llvm-reduce/deltas/ReduceDbgRecords.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
//===----------------------------------------------------------------------===//
1919

2020
#include "ReduceDbgRecords.h"
21-
#include "Utils.h"
2221
#include "llvm/ADT/STLExtras.h"
2322
#include "llvm/IR/BasicBlock.h"
2423
#include "llvm/IR/DebugProgramInstruction.h"

llvm/tools/llvm-reduce/deltas/ReduceDistinctMetadata.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "ReduceDistinctMetadata.h"
15-
#include "llvm/ADT/Sequence.h"
1615
#include "llvm/ADT/SetVector.h"
1716
#include "llvm/ADT/SmallVector.h"
18-
#include "llvm/IR/InstIterator.h"
19-
#include <algorithm>
2017
#include <queue>
2118

2219
using namespace llvm;

llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "ReduceFunctionBodies.h"
1515
#include "Utils.h"
16-
#include "llvm/IR/GlobalValue.h"
1716
#include "llvm/IR/Instructions.h"
1817

1918
using namespace llvm;

llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414

1515
#include "ReduceFunctions.h"
1616
#include "Utils.h"
17-
#include "llvm/ADT/STLExtras.h"
1817
#include "llvm/Transforms/Utils/Cloning.h"
1918
#include "llvm/Transforms/Utils/ModuleUtils.h"
20-
#include <iterator>
2119

2220
using namespace llvm;
2321

llvm/tools/llvm-reduce/deltas/ReduceGlobalVarInitializers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "ReduceGlobalVarInitializers.h"
15-
#include "llvm/IR/Constants.h"
1615
#include "llvm/IR/GlobalValue.h"
1716
#include "llvm/IR/Value.h"
1817
#include "llvm/Transforms/Utils/Cloning.h"

llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "ReduceGlobalVars.h"
1515
#include "Utils.h"
16-
#include "llvm/IR/Constants.h"
1716
#include "llvm/IR/Value.h"
1817
#include "llvm/Transforms/Utils/Cloning.h"
1918
#include "llvm/Transforms/Utils/ModuleUtils.h"

llvm/tools/llvm-reduce/deltas/ReduceInstructionsMIR.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/ADT/SetVector.h"
1616
#include "llvm/CodeGen/MachineDominators.h"
1717
#include "llvm/CodeGen/MachineFunction.h"
18-
#include "llvm/CodeGen/MachineFunctionPass.h"
1918
#include "llvm/CodeGen/MachineModuleInfo.h"
2019
#include "llvm/CodeGen/MachineRegisterInfo.h"
2120
#include "llvm/CodeGen/TargetInstrInfo.h"

llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "llvm/ADT/Sequence.h"
1919
#include "llvm/IR/InstVisitor.h"
2020
#include "llvm/IR/InstrTypes.h"
21-
#include "llvm/Support/raw_ostream.h"
22-
#include <algorithm>
2321
#include <iterator>
2422
#include <vector>
2523

llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "ReduceOperandsSkip.h"
10-
#include "llvm/ADT/Sequence.h"
1110
#include "llvm/ADT/SetVector.h"
1211
#include "llvm/IR/Constants.h"
1312
#include "llvm/IR/Dominators.h"

llvm/tools/llvm-reduce/deltas/ReduceSpecialGlobals.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "ReduceSpecialGlobals.h"
1818
#include "Utils.h"
1919
#include "llvm/ADT/StringRef.h"
20-
#include "llvm/IR/Constants.h"
2120
#include "llvm/IR/GlobalValue.h"
2221

2322
using namespace llvm;

llvm/tools/llvm-reduce/deltas/SimplifyInstructions.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "SimplifyInstructions.h"
1515
#include "llvm/Analysis/InstructionSimplify.h"
16-
#include "llvm/IR/Constants.h"
1716

1817
using namespace llvm;
1918

llvm/tools/llvm-reduce/llvm-reduce.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
#include "llvm/CodeGen/CommandFlags.h"
2222
#include "llvm/Support/CommandLine.h"
2323
#include "llvm/Support/InitLLVM.h"
24-
#include "llvm/Support/MemoryBufferRef.h"
2524
#include "llvm/Support/Process.h"
2625
#include "llvm/Support/WithColor.h"
2726
#include "llvm/Support/raw_ostream.h"
28-
#include <system_error>
2927

3028
#ifdef _WIN32
3129
#include <windows.h>

0 commit comments

Comments
 (0)