[all-commits] [llvm/llvm-project] 7c2192: Add the use of register r for outlined function wh...

jinlin-bayarea via All-commits all-commits at lists.llvm.org
Wed Mar 3 15:14:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c2192b277e6050f30a1582efe5217b1ee904b1b
      https://github.com/llvm/llvm-project/commit/7c2192b277e6050f30a1582efe5217b1ee904b1b
  Author: Jin Lin <jinl at uber.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M llvm/lib/CodeGen/MachineOutliner.cpp
    A llvm/test/CodeGen/AArch64/machine-outliner-side-effect-2.mir

  Log Message:
  -----------
  Add the use of register r for outlined function when register r is live in and defined later.

The compiler needs to mark register $x0 as live in for the following case.

    $x1 = ADDXri $sp, 16, 0
    BL @spam, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $x0, implicit killed $x1, implicit-def $sp, implicit-def dead $x0

Reviewed By: paquette

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




More information about the All-commits mailing list