[llvm] r368161 - [mips] Use isMicroMips() function to check enabled feature flag. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 05:21:32 PDT 2019
Author: atanasyan
Date: Wed Aug 7 05:21:32 2019
New Revision: 368161
URL: http://llvm.org/viewvc/llvm-project?rev=368161&view=rev
Log:
[mips] Use isMicroMips() function to check enabled feature flag. NFC
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp?rev=368161&r1=368160&r2=368161&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp Wed Aug 7 05:21:32 2019
@@ -277,8 +277,7 @@ void MipsTargetStreamer::emitEmptyDelayS
}
void MipsTargetStreamer::emitNop(SMLoc IDLoc, const MCSubtargetInfo *STI) {
- const FeatureBitset &Features = STI->getFeatureBits();
- if (Features[Mips::FeatureMicroMips])
+ if (isMicroMips(STI))
emitRR(Mips::MOVE16_MM, Mips::ZERO, Mips::ZERO, IDLoc, STI);
else
emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
More information about the llvm-commits
mailing list