[all-commits] [llvm/llvm-project] be21bd: Revert "[BOLT] Add --pad-funcs-before=func:n (#117...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Mon Jan 6 12:58:22 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be21bd9bbf3bc906f9b98ac3de1fc88a4a8ac4b4
      https://github.com/llvm/llvm-project/commit/be21bd9bbf3bc906f9b98ac3de1fc88a4a8ac4b4
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2025-01-06 (Mon, 06 Jan 2025)

  Changed paths:
    M bolt/lib/Core/BinaryEmitter.cpp
    M bolt/lib/Passes/ReorderFunctions.cpp
    R bolt/test/AArch64/pad-before-funcs.s

  Log Message:
  -----------
  Revert "[BOLT] Add --pad-funcs-before=func:n (#117924)"

14dcf8214f9c66172d17c1cfaec6aec0030748e0 introduced a subtle bug with
the static `FunctionPadding` map.

If either `opts::FunctionPadSpec` or `opts::FunctionPadBeforeSpec` are set,
the map is going to be populated with the respective spec in the first
invocation of `BinaryEmitter::emitFunction`. The subsequent invocations
will pick up the padding from the map irrespective of whether
`opts::FunctionPadSpec` or `opts::FunctionPadBeforeSpec` is passed as a
parameter.

This breaks an internal test, hence reverting the patch.



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