]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid useless reading of profile data in LTO
authorJan Hubicka <hubicka@ucw.cz>
Fri, 6 Jun 2025 08:56:51 +0000 (10:56 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Fri, 6 Jun 2025 08:57:27 +0000 (10:57 +0200)
commit572dd0dd8db4bec69883c0b3e53013a7842e886e
treeb2946b3861e8a0a446d0b10b147788a6a41f8574
parentba1ad0ec6fe6b8ee3e6682f266f7a336a15f7965
Avoid useless reading of profile data in LTO

New auto-profile merging dumps made me notice that we read the afdo
data when we are in LTO.  This is not necessary since profile is read
at compile time and streamed to LTO bytecode.

gcc/ChangeLog:

* coverage.cc (coverage_init): Return early when in LTO
gcc/coverage.cc