[llvm] c630f95 - [llvm-exegesis] Remove unnecessary includes (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 23:28:15 PST 2023


Author: Kazu Hirata
Date: 2023-12-05T23:28:09-08:00
New Revision: c630f95f33e31fe11ec6242560d9bf5d57007673

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

LOG: [llvm-exegesis] Remove unnecessary includes (NFC)

Identified with clangd.

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/Analysis.cpp
    llvm/tools/llvm-exegesis/lib/Analysis.h
    llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
    llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
    llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
    llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index bd088b907aaf7..2b924b9423f4e 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -13,7 +13,6 @@
 #include "llvm/MC/MCTargetOptions.h"
 #include "llvm/Support/FormatVariadic.h"
 #include <limits>
-#include <unordered_set>
 #include <vector>
 
 namespace llvm {

diff  --git a/llvm/tools/llvm-exegesis/lib/Analysis.h b/llvm/tools/llvm-exegesis/lib/Analysis.h
index a0f22bad1adef..4a85d45a2d56a 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.h
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.h
@@ -23,7 +23,6 @@
 #include "llvm/Support/Error.h"
 #include "llvm/Support/raw_ostream.h"
 #include <memory>
-#include <set>
 
 namespace llvm {
 namespace exegesis {

diff  --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index 6c97ee945b1b6..dd7c1a3155317 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -16,7 +16,6 @@
 #include "PerfHelper.h"
 #include "SubprocessMemory.h"
 #include "Target.h"
-#include "llvm/ADT/ScopeExit.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"

diff  --git a/llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp b/llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
index 08fd7184068c3..59107577d17cd 100644
--- a/llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
@@ -12,8 +12,6 @@
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/MCA/Support.h"
 #include "llvm/Support/FormatVariadic.h"
-#include <limits>
-#include <unordered_set>
 #include <vector>
 
 namespace llvm {

diff  --git a/llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp b/llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
index 39294819f373d..d93b02357ef7d 100644
--- a/llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
@@ -15,8 +15,6 @@
 #include "SerialSnippetGenerator.h"
 #include "TestBase.h"
 
-#include <unordered_set>
-
 namespace llvm {
 namespace exegesis {
 namespace {

diff  --git a/llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp b/llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp
index 007fa5b8c0d43..81651b359e93f 100644
--- a/llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp
@@ -15,8 +15,6 @@
 #include "SerialSnippetGenerator.h"
 #include "TestBase.h"
 
-#include <unordered_set>
-
 namespace llvm {
 namespace exegesis {
 namespace {


        


More information about the llvm-commits mailing list