[llvm] be773c1 - Revert "Mips: Force 64bit subtarget feature to be set for ABI options (#157446)" (#157833)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 04:43:57 PDT 2025
Author: Matt Arsenault
Date: 2025-09-10T11:43:53Z
New Revision: be773c1554b54fee3ef60e87097494a5139f1ec2
URL: https://github.com/llvm/llvm-project/commit/be773c1554b54fee3ef60e87097494a5139f1ec2
DIFF: https://github.com/llvm/llvm-project/commit/be773c1554b54fee3ef60e87097494a5139f1ec2.diff
LOG: Revert "Mips: Force 64bit subtarget feature to be set for ABI options (#157446)" (#157833)
This reverts commit 7768cca2c6617523e38ba9a8a3e8366752992ec5.
This is less necessary after 7f4c297e94dd604d66429dd0eb85c79e4d8c50a9
Added:
Modified:
llvm/lib/Target/Mips/MipsSubtarget.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.cpp b/llvm/lib/Target/Mips/MipsSubtarget.cpp
index 8b9ee7fca208e..8c4bb15a7e617 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.cpp
+++ b/llvm/lib/Target/Mips/MipsSubtarget.cpp
@@ -245,20 +245,10 @@ CodeGenOptLevel MipsSubtarget::getOptLevelToEnablePostRAScheduler() const {
MipsSubtarget &
MipsSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS,
const TargetMachine &TM) {
- const Triple &TT = TM.getTargetTriple();
- StringRef CPUName = MIPS_MC::selectMipsCPU(TT, CPU);
-
- std::string FullFS;
- if (getABI().ArePtrs64bit()) {
- FullFS = "+ptr64";
- if (!FS.empty())
- FullFS = (Twine(FullFS) + "," + FS).str();
- } else {
- FullFS = FS.str();
- }
+ StringRef CPUName = MIPS_MC::selectMipsCPU(TM.getTargetTriple(), CPU);
// Parse features string.
- ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPUName, FullFS);
+ ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS);
// Initialize scheduling itinerary for the specified CPU.
InstrItins = getInstrItineraryForCPU(CPUName);
More information about the llvm-commits
mailing list