[all-commits] [llvm/llvm-project] 0ffaff: Reapply 6fa2abf90886f18472c87bc9bffbcdf4f73c465e
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Mon Feb 6 07:44:34 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ffaffcaac97de31e1b0e7e80c4f7cab724eda20
https://github.com/llvm/llvm-project/commit/0ffaffcaac97de31e1b0e7e80c4f7cab724eda20
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2023-02-06 (Mon, 06 Feb 2023)
Changed paths:
M clang/lib/Driver/ToolChains/AMDGPU.cpp
M clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
M clang/lib/Driver/ToolChains/FreeBSD.cpp
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/lib/Driver/ToolChains/Gnu.h
M clang/lib/Driver/ToolChains/HIPAMD.cpp
A clang/lib/Driver/ToolChains/LazyDetector.h
M clang/lib/Driver/ToolChains/Linux.cpp
Log Message:
-----------
Reapply 6fa2abf90886f18472c87bc9bffbcdf4f73c465e
Lazyly initialize uncommon toolchain detector
Cuda and rocm toolchain detectors are currently run unconditionally,
while their result may not be used at all. Make their initialization
lazy so that the discovery code is not run in common cases.
Reapplied since 77910ac374656319ff114ef251fda358d4aa166a landed and
fixes the test ordering issue.
Differential Revision: https://reviews.llvm.org/D142606
More information about the All-commits
mailing list