From 590a8931552c00db533a4fa96007426fa4074eff Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 11:11:39 -0700 Subject: [PATCH] [RISCV] Remove unused includes (NFC) 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. --- llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp | 1 - llvm/lib/Target/RISCV/RISCVSubtarget.cpp | 2 -- llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp | 1 - 3 files changed, 4 deletions(-) diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp index 8f0aa7aeff208..e4ccf50292315 100644 --- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp +++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp @@ -18,7 +18,6 @@ #include "llvm/MC/MCAssembler.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCStreamer.h" -#include "llvm/MC/MCSymbolELF.h" #include "llvm/MC/MCValue.h" #include "llvm/Support/Casting.h" #include "llvm/Support/ErrorHandling.h" diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp index b3c313f2ed394..c754de45db7fd 100644 --- a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp +++ b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp @@ -17,8 +17,6 @@ #include "RISCVFrameLowering.h" #include "RISCVSelectionDAGInfo.h" #include "RISCVTargetMachine.h" -#include "llvm/CodeGen/MacroFusion.h" -#include "llvm/CodeGen/ScheduleDAGMutation.h" #include "llvm/MC/TargetRegistry.h" #include "llvm/Support/ErrorHandling.h" diff --git a/llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp b/llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp index 3980b7dd2be83..be54a8c95a978 100644 --- a/llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp +++ b/llvm/lib/Target/RISCV/RISCVVectorMaskDAGMutation.cpp @@ -28,7 +28,6 @@ #include "MCTargetDesc/RISCVBaseInfo.h" #include "MCTargetDesc/RISCVMCTargetDesc.h" -#include "RISCVRegisterInfo.h" #include "RISCVTargetMachine.h" #include "llvm/CodeGen/LiveIntervals.h" #include "llvm/CodeGen/MachineInstr.h"