diff options
author | Nikita Popov <npopov@redhat.com> | 2025-07-18 10:08:43 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2025-07-18 10:15:19 +0200 |
commit | a96121089b9c94e08c6632f91f2dffc73c0ffa28 (patch) | |
tree | 261f878bb7e6d1938f28313024e5db4406ba1e54 /llvm/utils | |
parent | 64a0478e08829ec6bcae2b05e154aa58c2c46ac0 (diff) | |
download | llvm-a96121089b9c94e08c6632f91f2dffc73c0ffa28.zip llvm-a96121089b9c94e08c6632f91f2dffc73c0ffa28.tar.gz llvm-a96121089b9c94e08c6632f91f2dffc73c0ffa28.tar.bz2 |
Revert "RuntimeLibcalls: Add methods to recognize libcall names (#149001)"
This reverts commit 45477add8dfe9851605697bd908b49f0ec244625.
This causes a significant LTO compile-time regression.
Diffstat (limited to 'llvm/utils')
-rw-r--r-- | llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp b/llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp index 7f90d6b..652bea9 100644 --- a/llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp +++ b/llvm/utils/TableGen/Basic/RuntimeLibcallsEmitter.cpp @@ -236,19 +236,8 @@ public: for (RuntimeLibcall &LibCall : RuntimeLibcallDefList) Def2RuntimeLibcall[LibCall.getDef()] = &LibCall; - ArrayRef<const Record *> AllRuntimeLibcallImplsRaw = + ArrayRef<const Record *> AllRuntimeLibcallImpls = Records.getAllDerivedDefinitions("RuntimeLibcallImpl"); - - SmallVector<const Record *, 1024> AllRuntimeLibcallImpls( - AllRuntimeLibcallImplsRaw); - - // Sort by libcall impl name, not the enum name. This keeps the order - // suitable for using the name table for libcall recognition binary search. - llvm::sort(AllRuntimeLibcallImpls, [](const Record *A, const Record *B) { - return A->getValueAsString("LibCallFuncName") < - B->getValueAsString("LibCallFuncName"); - }); - RuntimeLibcallImplDefList.reserve(AllRuntimeLibcallImpls.size()); size_t LibCallImplEnumVal = 1; |