[PATCH] D136115: [BOLT][NFCI] Avoid calling registerName() twice
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 17 16:17:15 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdc8035bdddf4: [BOLT][NFCI] Avoid calling registerName() twice (authored by maksfb).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136115/new/
https://reviews.llvm.org/D136115
Files:
bolt/lib/Rewrite/RewriteInstance.cpp
Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -1068,6 +1068,7 @@
if (opts::Verbosity >= 1)
outs() << "BOLT-INFO: skipping possibly another entry for function "
<< *PreviousFunction << " : " << UniqueName << '\n';
+ registerName(SymbolSize);
} else {
outs() << "BOLT-INFO: using " << UniqueName << " as another entry to "
<< "function " << *PreviousFunction << '\n';
@@ -1084,7 +1085,6 @@
assert(SI->second == Symbol && "wrong symbol found");
FileSymRefs.erase(SI);
}
- registerName(SymbolSize);
continue;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136115.468358.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221017/2f8880a3/attachment.bin>
More information about the llvm-commits
mailing list