Skip to content

Commit 8eae7c4

Browse files
committed
Revert "Mips: Force 64bit subtarget feature to be set for ABI options (#157446)"
This reverts commit 7768cca. This is less necessary after 7f4c297
1 parent 0b696a8 commit 8eae7c4

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

llvm/lib/Target/Mips/MipsSubtarget.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,10 @@ CodeGenOptLevel MipsSubtarget::getOptLevelToEnablePostRAScheduler() const {
245245
MipsSubtarget &
246246
MipsSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS,
247247
const TargetMachine &TM) {
248-
const Triple &TT = TM.getTargetTriple();
249-
StringRef CPUName = MIPS_MC::selectMipsCPU(TT, CPU);
250-
251-
std::string FullFS;
252-
if (getABI().ArePtrs64bit()) {
253-
FullFS = "+ptr64";
254-
if (!FS.empty())
255-
FullFS = (Twine(FullFS) + "," + FS).str();
256-
} else {
257-
FullFS = FS.str();
258-
}
248+
StringRef CPUName = MIPS_MC::selectMipsCPU(TM.getTargetTriple(), CPU);
259249

260250
// Parse features string.
261-
ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPUName, FullFS);
251+
ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS);
262252
// Initialize scheduling itinerary for the specified CPU.
263253
InstrItins = getInstrItineraryForCPU(CPUName);
264254

0 commit comments

Comments
 (0)