[all-commits] [llvm/llvm-project] b783aa: [AArch64] Fix emitting an AdrpAddLdr LOH when ther...

Amara Emerson via All-commits all-commits at lists.llvm.org
Mon Mar 1 13:53:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b783aa89795635cbe7b25b4143b562931fcec9f6
      https://github.com/llvm/llvm-project/commit/b783aa89795635cbe7b25b4143b562931fcec9f6
  Author: Amara Emerson <amara at apple.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64CollectLOH.cpp
    A llvm/test/CodeGen/AArch64/loh-adrp-add-ldr-clobber.mir

  Log Message:
  -----------
  [AArch64] Fix emitting an AdrpAddLdr LOH when there's a potential clobber of the
def of the adrp before the ldr.

Apparently this pass used to have liveness analysis but it was removed for
scompile time reasons. This workaround prevents the LOH from being emitted
unless the ADD and LDR are adjacent.

Fixes https://github.com/JuliaLang/julia/issues/39820

Differential Revision: https://reviews.llvm.org/D97571




More information about the All-commits mailing list