hubert.reinterpretcast added a comment. Calling it the "Darwin factor" gives it a certain je ne sais quoi. :)
================ Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:298 + // each architecture. (except on AIX) if (TargetCPUName.empty()) { if (T.isOSAIX()) ---------------- I think we can reduce the nesting while keeping the NRVO and reorder the checks to prefer the more likely (for non-AIX) case of `ppc64le`: ``` if (!TargetCPUName.empty()) return TargetCPUName; if (T.isOSAIX()) TargetCPUName = "pwr4"; else if (T.getArch() == llvm::Triple::ppc64le) TargetCPUName = "ppc64le"; else if (T.getArch() == llvm::Triple::ppc64) TargetCPUName = "ppc64"; else TargetCPUName = "ppc"; return TargetCPUName; ``` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D81115/new/ https://reviews.llvm.org/D81115 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits