[llvm] 290d7b8 - llvm-reduce: Prune some unneeded includes and forward declares (#133883)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 1 04:23:31 PDT 2025
Author: Matt Arsenault
Date: 2025-04-01T18:23:27+07:00
New Revision: 290d7b82cb5d3fd9fb433ede0eef7f3a524d89cd
URL: https://github.com/llvm/llvm-project/commit/290d7b82cb5d3fd9fb433ede0eef7f3a524d89cd
DIFF: https://github.com/llvm/llvm-project/commit/290d7b82cb5d3fd9fb433ede0eef7f3a524d89cd.diff
LOG: llvm-reduce: Prune some unneeded includes and forward declares (#133883)
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp
llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp
llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp
index 63d7abe61bda7..b1125de1b345e 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp
@@ -12,27 +12,11 @@
//===----------------------------------------------------------------------===//
#include "ReduceAttributes.h"
-#include "TestRunner.h"
#include "llvm/ADT/ArrayRef.h"
-#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/Sequence.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h"
-#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/InstVisitor.h"
-#include "llvm/IR/InstrTypes.h"
-#include "llvm/IR/Intrinsics.h"
-#include "llvm/IR/Module.h"
-#include "llvm/Support/raw_ostream.h"
-#include <algorithm>
-#include <cassert>
-#include <iterator>
-#include <utility>
-
-namespace llvm {
-class LLVMContext;
-} // namespace llvm
using namespace llvm;
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp
index e5d7b187c8107..a3e24f33dc77c 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandBundles.cpp
@@ -12,7 +12,6 @@
//===----------------------------------------------------------------------===//
#include "ReduceOperandBundles.h"
-#include "TestRunner.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h b/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h
index ff8ba4a004f34..84a741de92b2e 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h
+++ b/llvm/tools/llvm-reduce/deltas/ReduceVirtualRegisters.h
@@ -17,8 +17,6 @@
#include "Delta.h"
namespace llvm {
-class TestRunner;
-
/// Remove register allocation hints from virtual registes.
void reduceVirtualRegisterHintsDeltaPass(Oracle &O, ReducerWorkItem &WorkItem);
More information about the llvm-commits
mailing list