-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[BOLT] Enable hugify for AArch64 #117158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BOLT] Enable hugify for AArch64 #117158
Changes from all commits
819e97e
902004f
fadc278
8a72675
a6b350b
95bfc77
dbe2c8f
c308c33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,28 @@ int main(int argc, char **argv) { | |
REQUIRES: system-linux,bolt-runtime | ||
|
||
RUN: %clang %cflags -no-pie %s -o %t.nopie.exe -Wl,-q | ||
RUN: %clang %cflags -fpic -pie %s -o %t.pie.exe -Wl,-q | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May I ask why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! You may ask. I hope I could respond to this comment with the following explanation:
I think your question is about whether to use
Should we discuss what exactly |
||
RUN: %clang %cflags -fpic %s -o %t.pie.exe -Wl,-q | ||
|
||
RUN: llvm-bolt %t.nopie.exe --lite=0 -o %t.nopie --hugify | ||
RUN: llvm-bolt %t.pie.exe --lite=0 -o %t.pie --hugify | ||
|
||
RUN: llvm-nm --numeric-sort --print-armap %t.nopie | \ | ||
RUN: FileCheck %s -check-prefix=CHECK-NM | ||
RUN: %t.nopie | FileCheck %s -check-prefix=CHECK-NOPIE | ||
|
||
CHECK-NOPIE: Hello world | ||
|
||
RUN: llvm-nm --numeric-sort --print-armap %t.pie | \ | ||
RUN: FileCheck %s -check-prefix=CHECK-NM | ||
RUN: %t.pie | FileCheck %s -check-prefix=CHECK-PIE | ||
|
||
CHECK-NM: W __hot_start | ||
CHECK-NM-NEXT: T _start | ||
CHECK-NM: T main | ||
CHECK-NM: W __hot_end | ||
CHECK-NM: t __bolt_hugify_start_program | ||
CHECK-NM-NEXT: W __bolt_runtime_start | ||
|
||
CHECK-NOPIE: Hello world | ||
|
||
CHECK-PIE: Hello world | ||
|
||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "Arch is not supported" probably better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your valuable comment. Let me disagree on this one with you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, someone who would add support for RISC-V for example would absolutely change it "For AArch64/ARM64 and X86_64 and RISC-V only." as it is very convenient :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Why not? Or it just removes this line entirely because of this:
But if you worry about the cognitive effort that might be hard to understand as you demonstrated in your case:
"AArch64;X86;RISCV archs are supported!"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too pi ty that you don't understand that good code doesn't have to be changed each time. Not that I worried about my cognitive efforts, but your mental health. Sorry, not interested in further discussions with such an arrogant tool like you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do apologise for any inconvenience you have had because of this. However, Could you be more specific what exactly was so arrogant towards you based on fact that you have used words like "garbage" instead of more appropriate disagreement regarding appropriate style of error messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I wrote exactly this word because of your previous comments about my "helpful and valuable comments" with barely hidden aggression. Please, don't play a victim now. Anyway it was addressed to output, not you or your work.
I'm not payed to work with you and just not interested in further discussions, maybe someone else dare to write any comments to your review if they're ready to have such a nice conversations.