diff options
author | Reid Kleckner <rnk@google.com> | 2016-01-27 01:43:12 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-01-27 01:43:12 +0000 |
commit | 5b4637141eb4f1e1d01e58699f90541a480b5a96 (patch) | |
tree | b0625bbd2ce32dcc287a89f2e2746207a2f7785b /llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp | |
parent | 3075134739edc9cd16d5ca7b9a78d8b4d5fbff3e (diff) | |
download | bcm5719-llvm-5b4637141eb4f1e1d01e58699f90541a480b5a96.tar.gz bcm5719-llvm-5b4637141eb4f1e1d01e58699f90541a480b5a96.zip |
[llvm-tblgen] Avoid StringMatcher for GCC and MS builtin names
This brings the compile time of Function.cpp from ~40s down to ~4s for
me locally. It also shaves off about 400KB of object file size in a
release+asserts build.
I also realized that the AMDGPU backend does not have any GCC builtin
names to match, so the extra lookup was a no-op. I removed it to silence
a zero-length string table array warning. There should be no functional
change here.
This change really ends the story of PR11951.
llvm-svn: 258897
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp index b92dd35a8e8..791872a9db4 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUIntrinsicInfo.cpp @@ -20,10 +20,6 @@ using namespace llvm; -#define GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN -#include "AMDGPUGenIntrinsics.inc" -#undef GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN - AMDGPUIntrinsicInfo::AMDGPUIntrinsicInfo() : TargetIntrinsicInfo() {} @@ -62,8 +58,7 @@ unsigned AMDGPUIntrinsicInfo::lookupName(const char *NameData, : 0; } - // Fall back on GCC builtin names. - return getIntrinsicForGCCBuiltin("AMDGPU", NameData); + return 0; } bool AMDGPUIntrinsicInfo::isOverloaded(unsigned id) const { |