File tree 2 files changed +2
-30
lines changed
2 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,7 @@ class CoalesceFeaturesAndStripAtomics final : public ModulePass {
200
200
bool runOnModule (Module &M) override {
201
201
FeatureBitset Features = coalesceFeatures (M);
202
202
203
- std::string FeatureStr =
204
- getFeatureString (Features, WasmTM->getTargetFeatureString ());
203
+ std::string FeatureStr = getFeatureString (Features);
205
204
WasmTM->setTargetFeatureString (FeatureStr);
206
205
for (auto &F : M)
207
206
replaceFeatures (F, FeatureStr);
@@ -239,17 +238,12 @@ class CoalesceFeaturesAndStripAtomics final : public ModulePass {
239
238
return Features;
240
239
}
241
240
242
- static std::string getFeatureString (const FeatureBitset &Features,
243
- StringRef TargetFS) {
241
+ std::string getFeatureString (const FeatureBitset &Features) {
244
242
std::string Ret;
245
243
for (const SubtargetFeatureKV &KV : WebAssemblyFeatureKV) {
246
244
if (Features[KV.Value ])
247
245
Ret += (StringRef (" +" ) + KV.Key + " ," ).str ();
248
246
}
249
- SubtargetFeatures TF{TargetFS};
250
- for (std::string const &F : TF.getFeatures ())
251
- if (!SubtargetFeatures::isEnabled (F))
252
- Ret += F;
253
247
return Ret;
254
248
}
255
249
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments