[all-commits] [llvm/llvm-project] fd823d: [BOLT] Zero all stale bytes in reused file region ...

YongKang Zhu via All-commits all-commits at lists.llvm.org
Fri Sep 18 14:56:36 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd823ddc6faa0f34c799d21449b54bc4492decc2
      https://github.com/llvm/llvm-project/commit/fd823ddc6faa0f34c799d21449b54bc4492decc2
  Author: YongKang Zhu <yongzhu at fb.com>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M bolt/include/bolt/Rewrite/RewriteInstance.h
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/test/AArch64/use-old-text-zero-padding.c

  Log Message:
  -----------
  [BOLT] Zero all stale bytes in reused file region (#222515)

`--use-old-text` reuses an input file region for new content. We have
only zeroed the padding that followed each newly written section in
#202375, which may leave stale bytes from input in front of the new
content. This could happen if the region is not on the new alignment
boundary, or when `--hot-functions-at-end` is used.

Replace the section name based forward scan with an interval coverage
over the region - collect the file extents of sections that contain
output bytes and then zero all the remaining holes.

Assisted-by: opus



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