[all-commits] [llvm/llvm-project] 1e9534: Revert "ELF: Add branch-to-branch optimization."

Hans Wennborg via All-commits all-commits at lists.llvm.org
Mon Jun 23 04:26:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e95349dbe329938d2962a78baa0ec421e9cd7d1
      https://github.com/llvm/llvm-project/commit/1e95349dbe329938d2962a78baa0ec421e9cd7d1
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    R lld/ELF/Arch/TargetImpl.h
    M lld/ELF/Arch/X86_64.cpp
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/InputSection.cpp
    M lld/ELF/Options.td
    M lld/ELF/Relocations.cpp
    M lld/ELF/Target.h
    M lld/docs/ReleaseNotes.rst
    M lld/docs/ld.lld.1
    R lld/test/ELF/aarch64-branch-to-branch.s
    R lld/test/ELF/x86-64-branch-to-branch.s

  Log Message:
  -----------
  Revert "ELF: Add branch-to-branch optimization."

This caused assertion failures in applyBranchToBranchOpt():

  llvm/include/llvm/Support/Casting.h:578:
  decltype(auto) llvm::cast(From*)
  [with To = lld::elf::InputSection; From = lld::elf::InputSectionBase]:
  Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

See comment on the PR (https://github.com/llvm/llvm-project/pull/138366)

This reverts commit 491b82a5ec1add78d2c93370580a2f1897b6a364.

This also reverts the follow-up "[lld] Use llvm::partition_point (NFC) (#145209)"

This reverts commit 2ac293f5ac4cf65c0c038bf75a88f1d6715e467d.



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