[all-commits] [llvm/llvm-project] 0ff51d: Fix interaction of CFI instructions with MachineOu...

Eli Friedman via All-commits all-commits at lists.llvm.org
Fri Jun 10 13:38:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ff51d5dde29dfd9bc5064e32d47345bab7a5034
      https://github.com/llvm/llvm-project/commit/0ff51d5dde29dfd9bc5064e32d47345bab7a5034
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2022-06-10 (Fri, 10 Jun 2022)

  Changed paths:
    M llvm/lib/CodeGen/MachineOutliner.cpp
    M llvm/lib/CodeGen/MachineVerifier.cpp
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/lib/Target/X86/X86InstrInfo.cpp
    M llvm/test/CodeGen/AArch64/machine-outliner-cfi.mir

  Log Message:
  -----------
  Fix interaction of CFI instructions with MachineOutliner.

1. When checking if a candidate contains a CFI instruction, actually
iterate over all of the instructions, instead of stopping halfway
through.
2. Make sure copied CFI directives refer to the correct instruction.

Fixes https://github.com/llvm/llvm-project/issues/55842

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




More information about the All-commits mailing list