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
how to use this tools for autoLIPO(autoFDO + LIPO)in gcc google 4_9 branch ? #106
Comments
+Wei Mi <wmi@google.com>
…On Thu, Feb 18, 2021 at 7:05 PM jinam ***@***.***> wrote:
hi, @danielcdh <https://github.com/danielcdh>
I recently read the code of LIPO <https://gcc.gnu.org/wiki/LightweightIpo>
(Profile Feedback Based Lightweight IPO) in gcc and find that the theory is
very good. In this paper
<https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7559528>, I see
that LIPO has realized the combination with autoFDO, avoiding the
disadvantage of LIPO having to recompile the FDO process.
I tried to use the autoFDO tool to generate the gcda and imports files required by LIPO, and although imports were automatically generated, it was always empty, causing LIPO not to optimize the program.
Therefore, I want to know how to make the imports file generated by the
autoFDO tool have content instead of empty and make LIPO effective.
thanks,
ijinma
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#106>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFJP54M4MXCSIMUOJWQAILS7XIP7ANCNFSM4X3SR2XQ>
.
|
Hi ijinma,
We stop supporting autoFDO + LIPO for a long time. The last version of gcc
in google branch which we know autoFDO + LIPO would work was gcc-4.8. After
that we move to llvm. The tool has gone through many changes and we never
test those changes with autoFDO + LIPO, so it is very possible that the
config doesn't work anymore. Sorry about that.
Thanks,
Wei.
…On Thu, Feb 18, 2021 at 7:12 PM Dehao Chen ***@***.***> wrote:
+Wei Mi ***@***.***>
On Thu, Feb 18, 2021 at 7:05 PM jinam ***@***.***> wrote:
> hi, @danielcdh <https://github.com/danielcdh>
> I recently read the code of LIPO
> <https://gcc.gnu.org/wiki/LightweightIpo> (Profile Feedback Based
> Lightweight IPO) in gcc and find that the theory is very good. In this
> paper <https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7559528>,
> I see that LIPO has realized the combination with autoFDO, avoiding the
> disadvantage of LIPO having to recompile the FDO process.
>
> I tried to use the autoFDO tool to generate the gcda and imports files required by LIPO, and although imports were automatically generated, it was always empty, causing LIPO not to optimize the program.
>
>
> Therefore, I want to know how to make the imports file generated by the
> autoFDO tool have content instead of empty and make LIPO effective.
>
> thanks,
> ijinma
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#106>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAFJP54M4MXCSIMUOJWQAILS7XIP7ANCNFSM4X3SR2XQ>
> .
>
|
hi, @danielcdh I'm so honored to have your answer to my question. Although the llvm thin LTO has a great advantage, I still want to try autoLIPO on GCC. I read the source code of the autoFDO tool briefly, but unfortunately I didn't find a way to enable autoLIPO, even as you say the config doesn't work anymore. I want to recreate your work, and I think it's worth continuing on gcc. I think there should be a proper way to turn on autoLIPO, though it might be very old. But I'm a beginner in the compiler direction, and I'm not good at all of this. So could you give me some help?
Looking forward to your reply! thanks, |
hi, @danielcdh
I recently read the code of LIPO (Profile Feedback Based Lightweight IPO) in gcc and find that the theory is very good. In this paper and this patches , I see that LIPO has realized the combination with autoFDO, avoiding the disadvantage of LIPO having to recompile the FDO process.
I tried to use the autoFDO tool to generate the gcda and imports files required by LIPO, and although imports were automatically generated, it was always empty, causing LIPO not to optimize the program.
Therefore, I want to know how to make the imports file generated by the autoFDO tool have content instead of empty and make LIPO effective.
Looking forward to your reply!
thanks,
ijinma
The text was updated successfully, but these errors were encountered: