[PATCH] D131283: [BOLT] Disable -lite when split function is present
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 10:26:25 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG153eeb4a5e68: [BOLT] Disable -lite when split function is present (authored by nhuhuan, committed by Amir).
Herald added a subscriber: treapster.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131283/new/
https://reviews.llvm.org/D131283
Files:
bolt/lib/Rewrite/RewriteInstance.cpp
Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -1429,10 +1429,17 @@
Function.hasRestoredNameRegex(".*\\.cold(\\.[0-9]+)?");
if (FragName) {
static bool PrintedWarning = false;
- if (BC->HasRelocations && !PrintedWarning) {
- errs() << "BOLT-WARNING: split function detected on input : "
- << *FragName << ". The support is limited in relocation mode.\n";
+ if (!PrintedWarning) {
PrintedWarning = true;
+ errs() << "BOLT-WARNING: split function detected on input : "
+ << *FragName;
+ if (BC->HasRelocations)
+ errs() << ". The support is limited in relocation mode";
+ if (opts::Lite) {
+ opts::Lite = false;
+ errs() << "\nBOLT-WARNING: disabling lite mode (-lite) when split "
+ << "functions are present\n";
+ }
}
Function.IsFragment = true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131283.463608.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220928/f01cbc6e/attachment.bin>
More information about the llvm-commits
mailing list