[all-commits] [llvm/llvm-project] 0982d9: [CodeGen][AArch64] Don't split inline asm goto blo...

Daniel Hoekwater via All-commits all-commits at lists.llvm.org
Tue Aug 29 13:28:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0982d96186a6c7ba78a231ae6034fa8862e8a058
      https://github.com/llvm/llvm-project/commit/0982d96186a6c7ba78a231ae6034fa8862e8a058
  Author: Daniel Hoekwater <hoekwater at google.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/test/CodeGen/Generic/machine-function-splitter.ll

  Log Message:
  -----------
  [CodeGen][AArch64] Don't split inline asm goto blocks or their targets

Machine function splitting + branch relaxation currently don't properly
handle inline asm goto blocks that conditional branch to cold goto
labels. While such inline asm is technically invalid, machine
function splitting is the only thing that exposes it as such.

Since machine function splitting doesn't help too much in these
circumstances anyway, disable it for asm goto blocks and their targets.

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




More information about the All-commits mailing list