[all-commits] [llvm/llvm-project] 4bcdac: [RISCV] Correct the CallPreservedMask for the func...

ShivaChen via All-commits all-commits at lists.llvm.org
Thu Feb 20 06:17:32 PST 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bcdac8d762794d822819eb6d207a0630c345d0b
      https://github.com/llvm/llvm-project/commit/4bcdac8d762794d822819eb6d207a0630c345d0b
  Author: Shiva Chen <shiva at andestech.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
    A llvm/test/CodeGen/RISCV/interrupt-attr-callee.ll

  Log Message:
  -----------
  [RISCV] Correct the CallPreservedMask for the function call in an interrupt handler

CallPreservedMask is used to describe the register liveness after a
function call. The function call in an interrupt handler should use the same
CallPreservedMask as normal functions. So that only callee save registers
can live through the function call.

(cherry picked from commit 1cae2f9d192c69833e22684ca338660942ab464e)




More information about the All-commits mailing list