[all-commits] [llvm/llvm-project] 289357: [RISCV] Don't emit save-restore call if function i...

Jim Lin via All-commits all-commits at lists.llvm.org
Thu Apr 15 21:57:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2893570e86dbb6b9b6b7f7779d9988ff6a686fe1
      https://github.com/llvm/llvm-project/commit/2893570e86dbb6b9b6b7f7779d9988ff6a686fe1
  Author: Jim Lin <jim at andestech.com>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
    M llvm/test/CodeGen/RISCV/saverestore.ll

  Log Message:
  -----------
  [RISCV] Don't emit save-restore call if function is a interrupt handler

It has to save all caller-saved registers before a call in the handler.
So don't emit a call that save/restore registers.

Reviewed By: simoncook, luismarques, asb

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




More information about the All-commits mailing list