[all-commits] [llvm/llvm-project] 6fe878: [BOLT] Modify warning when --use-old-text fails. N...

Maksim Panchenko via All-commits all-commits at lists.llvm.org
Thu Oct 9 14:41:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fe878a0e26d9e3a27f7c90a35e7487fd9edd705
      https://github.com/llvm/llvm-project/commit/6fe878a0e26d9e3a27f7c90a35e7487fd9edd705
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp

  Log Message:
  -----------
  [BOLT] Modify warning when --use-old-text fails. NFC (#162731)

When --use-old-text fails, we are emitting all code meant for the
original `.text` section into the new section. This could be more bytes
compared to those emitted under no `--use-old-text`, especially under
`--lite`. As a result, `--use-old-text` results in a larger binary, not
smaller which could be confusing to the user.

Add more information to the warning, including recommendation to rebuild
without `--use-old-text` for smaller binary size.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list