We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8789c00 commit e71686eCopy full SHA for e71686e
llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -839,10 +839,11 @@ void RISCVISAInfo::updateImplication() {
839
std::for_each(Range.first, Range.second,
840
[&](const ImpliedExtsEntry &Implied) {
841
const char *ImpliedExt = Implied.ImpliedExt;
842
- if (Exts.count(ImpliedExt))
+ auto [It, Inserted] = Exts.try_emplace(ImpliedExt);
843
+ if (!Inserted)
844
return;
845
auto Version = findDefaultVersion(ImpliedExt);
- Exts[ImpliedExt] = *Version;
846
+ It->second = *Version;
847
WorkList.push_back(ImpliedExt);
848
});
849
}
0 commit comments