================
@@ -715,6 +815,8 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool 
EnableExperimentalExtension,
 
   unsigned XLen = HasRV64 ? 64 : 32;
   std::unique_ptr<RISCVISAInfo> ISAInfo(new RISCVISAInfo(XLen));
+  SmallVector<std::string, 8> SeenExts;
----------------
topperc wrote:

Maybe SeenExts should be a SetVector to make it more efficient to check for 
duplicates?

Or maybe a MapVector storing the version as the value so we don't need 
ExtsVersion?

https://github.com/llvm/llvm-project/pull/78120
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to