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) {
19551955 << " , \"\" , \" n\" )\n " ;
19561956 }
19571957
1958- std::set<std::string > ShortNamesSeen;
1958+ DenseSet<StringRef > ShortNamesSeen;
19591959
19601960 for (const auto &kv : ACLEIntrinsics) {
19611961 const ACLEIntrinsic &Int = *kv.second ;
19621962 if (Int.polymorphic ()) {
19631963 StringRef Name = Int.shortName ();
1964- if (ShortNamesSeen.find ( std::string ( Name)) == ShortNamesSeen. end () ) {
1964+ if (ShortNamesSeen.insert ( Name). second ) {
19651965 OS << " BUILTIN(__builtin_arm_mve_" << Name << " , \" vi.\" , \" nt" ;
19661966 if (Int.nonEvaluating ())
19671967 OS << " u" ; // indicate that this builtin doesn't evaluate its args
19681968 OS << " \" )\n " ;
1969- ShortNamesSeen.insert (std::string (Name));
19701969 }
19711970 }
19721971 }
You can’t perform that action at this time.
0 commit comments