[all-commits] [llvm/llvm-project] dc8035: [BOLT][NFCI] Avoid calling registerName() twice
maksfb via All-commits
all-commits at lists.llvm.org
Mon Oct 17 16:17:14 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc8035bdddf47b5e1ee91e0147b0e3a404b74261
https://github.com/llvm/llvm-project/commit/dc8035bdddf47b5e1ee91e0147b0e3a404b74261
Author: Maksim Panchenko <maks at fb.com>
Date: 2022-10-17 (Mon, 17 Oct 2022)
Changed paths:
M bolt/lib/Rewrite/RewriteInstance.cpp
Log Message:
-----------
[BOLT][NFCI] Avoid calling registerName() twice
Calling registerName() for the same symbol twice, even with a different
size, has no effect other than the lookup overhead. Avoid the
redundancy.
Fixes facebookincubator/BOLT#299
Reviewed By: Amir
Differential Revision: https://reviews.llvm.org/D136115
More information about the All-commits
mailing list