[llvm] 3dc5f50 - [CodeGen] Remove dead accessors and variables in Machine* (NFC) (#224216)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 09:01:15 PDT 2026
Author: Kazu Hirata
Date: 2026-09-17T09:01:09-07:00
New Revision: 3dc5f505e302264758aef026531fe7443e569993
URL: https://github.com/llvm/llvm-project/commit/3dc5f505e302264758aef026531fe7443e569993
DIFF: https://github.com/llvm/llvm-project/commit/3dc5f505e302264758aef026531fe7443e569993.diff
LOG: [CodeGen] Remove dead accessors and variables in Machine* (NFC) (#224216)
MachineBasicBlock::PrefetchTargets:
Introduced on April 10, 2026 in commit
2f422a52fde267757ce48041af6e731421fed2a3 without any uses.
MachineInstrSpan::getInitial:
Introduced on August 14, 2013 in commit
c3f912b945ce6813e874b7a11c29ea2b3f2b54ff without any callers.
MachineConstantPool::getDataLayout:
The last use was removed on July 7, 2015 in commit
42e9f967127e5efea4c3b8638c9c4da8ad885fba.
SEHHandler / LandingPadInfo::SEHHandlers:
The last uses were removed on June 13, 2022 in commit
a2232da2a5d207126e1777fb33b61a16109ae38e.
MachineFunction::PersonalityTypeCache:
Moved from MachineModuleInfo on December 1, 2016 in commit
d0ee66c2e9de28cb1111663ba42468305f8d55fa without any uses.
Added:
Modified:
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/include/llvm/CodeGen/MachineConstantPool.h
llvm/include/llvm/CodeGen/MachineFunction.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index d5c31c4b7281b..215562968158f 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -213,8 +213,6 @@ class MachineBasicBlock
/// basic block sections and basic block labels.
std::optional<UniqueBBID> BBID;
- SmallVector<unsigned> PrefetchTargets;
-
/// With basic block sections, this stores the Section ID of the basic block.
MBBSectionID SectionID{0};
@@ -1475,8 +1473,6 @@ class MachineInstrSpan {
}
MachineBasicBlock::iterator end() { return E; }
bool empty() { return begin() == end(); }
-
- MachineBasicBlock::iterator getInitial() { return I; }
};
/// Increment \p It until it points to a non-debug instruction or to \p End
diff --git a/llvm/include/llvm/CodeGen/MachineConstantPool.h b/llvm/include/llvm/CodeGen/MachineConstantPool.h
index c44a991823f96..b36c8b719a11e 100644
--- a/llvm/include/llvm/CodeGen/MachineConstantPool.h
+++ b/llvm/include/llvm/CodeGen/MachineConstantPool.h
@@ -121,8 +121,6 @@ class MachineConstantPool {
DenseSet<MachineConstantPoolValue*> MachineCPVsSharingEntries;
const DataLayout &DL;
- const DataLayout &getDataLayout() const { return DL; }
-
public:
/// The only constructor.
explicit MachineConstantPool(const DataLayout &DL)
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index 94386510b9f8a..f30fe42feddf7 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -271,20 +271,11 @@ class MachineFunctionProperties {
std::bitset<static_cast<unsigned>(Property::LastProperty) + 1> Properties;
};
-struct SEHHandler {
- /// Filter or finally function. Null indicates a catch-all.
- const Function *FilterOrFinally;
-
- /// Address of block to recover at. Null for a finally handler.
- const BlockAddress *RecoverBA;
-};
-
/// This structure is used to retain landing pad info for the current function.
struct LandingPadInfo {
MachineBasicBlock *LandingPadBlock; // Landing pad block.
SmallVector<MCSymbol *, 1> BeginLabels; // Labels prior to invoke.
SmallVector<MCSymbol *, 1> EndLabels; // Labels after invoke.
- SmallVector<SEHHandler, 1> SEHHandlers; // SEH handlers active at this lpad.
MCSymbol *LandingPadLabel = nullptr; // Label at beginning of landing pad.
std::vector<int> TypeIds; // List of type ids (filters negative).
@@ -434,8 +425,6 @@ class LLVM_ABI MachineFunction {
/// List of the indices in FilterIds corresponding to filter terminators.
std::vector<unsigned> FilterEnds;
- EHPersonality PersonalityTypeCache = EHPersonality::Unknown;
-
/// \}
/// Clear all the members of this MachineFunction, but the ones used to
More information about the llvm-commits
mailing list