You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.
This looks like an underlying LLVM problem and not a BOLT problem? I noticed the llvm-objdump does not seem to know about the prefixes, compared to the regular objdump. @maksfb@rafaelauler@aaupov
This is ignored by the current processors. The static prediction is NT (Not Taken) and the prefix is ignored. They are also mostly not generated (except when using special compiler flags and likely/unlikely macros). So striping them by default would be right.
With or without the hint, the BPU is updated when the branch is taken.
We are doing some early research work to mark common conditional branches with 3E (so the branch instruction is predicted Taken by the CPU). We wanted to use LBR or conditional branch taken to collect profile and then use BOLT to apply the hint.
For this the following we will need the following
The branch probability of the conditional branch (is there an easy way in BOLT to get to this or do we need to process the profile data to create this?)
To add the 3E prefix for conditional branches that are mostly taken ( I presume that adding the prefix will require some of the LLVM support?)
Write out the binary and preserve the 3E (looks like this is missing some LLVM support)
Appreciate any directions on this.
Thanks
--Suresh
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Discussing with @maksfb it looks like it is similar to issue https://reviews.llvm.org/D120592
I have an input binary of the form
It has 3 conditional branches with a prefix of 2e. This is the output after BOLTing. The 3 conditional branches don't have the prefixes anymore.
This looks like an underlying LLVM problem and not a BOLT problem? I noticed the llvm-objdump does not seem to know about the prefixes, compared to the regular objdump. @maksfb @rafaelauler @aaupov
Thanks
--Suresh
The text was updated successfully, but these errors were encountered: