File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1955,18 +1955,17 @@ void MveEmitter::EmitBuiltinDef(raw_ostream &OS) {
1955
1955
<< " , \"\" , \" n\" )\n " ;
1956
1956
}
1957
1957
1958
- std::set<std::string > ShortNamesSeen;
1958
+ DenseSet<StringRef > ShortNamesSeen;
1959
1959
1960
1960
for (const auto &kv : ACLEIntrinsics) {
1961
1961
const ACLEIntrinsic &Int = *kv.second ;
1962
1962
if (Int.polymorphic ()) {
1963
1963
StringRef Name = Int.shortName ();
1964
- if (ShortNamesSeen.find ( std::string ( Name)) == ShortNamesSeen. end () ) {
1964
+ if (ShortNamesSeen.insert ( Name). second ) {
1965
1965
OS << " BUILTIN(__builtin_arm_mve_" << Name << " , \" vi.\" , \" nt" ;
1966
1966
if (Int.nonEvaluating ())
1967
1967
OS << " u" ; // indicate that this builtin doesn't evaluate its args
1968
1968
OS << " \" )\n " ;
1969
- ShortNamesSeen.insert (std::string (Name));
1970
1969
}
1971
1970
}
1972
1971
}
You can’t perform that action at this time.
0 commit comments