================
@@ -735,11 +736,10 @@ AMDGPUToolChain::TranslateArgs(const DerivedArgList
&Args, StringRef BoundArch,
<< llvm::toString(GPUsOrErr.takeError()) << "-mcpu";
} else {
auto &GPUs = *GPUsOrErr;
- if (GPUs.size() > 1) {
+ if (llvm::SmallSet<std::string, 1>(GPUs.begin(), GPUs.end()).size() > 1)
----------------
arsenm wrote:
SmallString? Also use the set to start instead of creating the temporary?
https://github.com/llvm/llvm-project/pull/185490
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits