This patch removes the special handling for Darwin on PowerPC in the default target cpu handling, because Darwin is no longer supported on the PowerPC platform.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Calling it the "Darwin factor" gives it a certain je ne sais quoi. :)
clang/lib/Driver/ToolChains/CommonArgs.cpp | ||
---|---|---|
296–297 | 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; |
Comment Actions
The unit test failure (instrprof-gcov-multithread_fork.test) in pre merge checks is caused by another commit. See http://lab.llvm.org:8011/builders/llvm-avr-linux/builds/2205.
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: