[all-commits] [llvm/llvm-project] 5c1fe4: [Target] Cache the command line derived feature ma...
topperc via All-commits
all-commits at lists.llvm.org
Wed Aug 12 12:39:18 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 5c1fe4e20f887286baac6989943a0875e12834fe
https://github.com/llvm/llvm-project/commit/5c1fe4e20f887286baac6989943a0875e12834fe
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-08-12 (Wed, 12 Aug 2020)
Changed paths:
M clang/include/clang/Basic/TargetOptions.h
M clang/lib/AST/ASTContext.cpp
M clang/lib/Basic/Targets.cpp
M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
Log Message:
-----------
[Target] Cache the command line derived feature map in TargetOptions.
We can use this to remove some calls to initFeatureMap from Sema
and CodeGen when a function doesn't have a target attribute.
This reduces compile time of the linux kernel where this map
is needed to diagnose some inline assembly constraints based
on whether sse, avx, or avx512 is enabled.
Differential Revision: https://reviews.llvm.org/D85807
More information about the All-commits
mailing list