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
According to the LDC documentation, LDC now implements FrontEnd PGO (FE PGO) (since -fprofile-instr-generate option in Clang enables FE PGO too).
According to the issue in the LLVM tracker, FE PGO is not a recommended way to implement PGO nowadays. IR PGO (-fprofile-generate option in Clang) should be used instead.
I think we need to consider giving the possibility to users use IR PGO with LDC as well and write this recommendation in LDC's PGO documentation.
The text was updated successfully, but these errors were encountered:
We do have IR-based PGO since a very long time; like clang, we use -fprofile-{use,generate} for that. It's also the PGO method we use for the compiler itself.
According to the LDC documentation, LDC now implements FrontEnd PGO (FE PGO) (since
-fprofile-instr-generate
option in Clang enables FE PGO too).According to the issue in the LLVM tracker, FE PGO is not a recommended way to implement PGO nowadays. IR PGO (
-fprofile-generate
option in Clang) should be used instead.I think we need to consider giving the possibility to users use IR PGO with LDC as well and write this recommendation in LDC's PGO documentation.
The text was updated successfully, but these errors were encountered: