mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 21:31:41 +00:00
[Target] Remove the AvailableRegClasses vector from TargetLoweringBase. It was a private member with no code reading from it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac396ea37f
commit
481ecf26d0
@ -1409,15 +1409,12 @@ protected:
|
||||
/// that class natively.
|
||||
void addRegisterClass(MVT VT, const TargetRegisterClass *RC) {
|
||||
assert((unsigned)VT.SimpleTy < array_lengthof(RegClassForVT));
|
||||
AvailableRegClasses.push_back(std::make_pair(VT, RC));
|
||||
RegClassForVT[VT.SimpleTy] = RC;
|
||||
}
|
||||
|
||||
/// Remove all register classes.
|
||||
void clearRegisterClasses() {
|
||||
std::fill(std::begin(RegClassForVT), std::end(RegClassForVT), nullptr);
|
||||
|
||||
AvailableRegClasses.clear();
|
||||
}
|
||||
|
||||
/// \brief Remove all operation actions.
|
||||
@ -2064,7 +2061,6 @@ private:
|
||||
LegalizeKind getTypeConversion(LLVMContext &Context, EVT VT) const;
|
||||
|
||||
private:
|
||||
std::vector<std::pair<MVT, const TargetRegisterClass*> > AvailableRegClasses;
|
||||
|
||||
/// Targets can specify ISD nodes that they would like PerformDAGCombine
|
||||
/// callbacks for by calling setTargetDAGCombine(), which sets a bit in this
|
||||
|
Loading…
x
Reference in New Issue
Block a user