[all-commits] [llvm/llvm-project] f685bc: [PowerPC][NFC] Add a function to determine if a ca...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Fri Apr 29 06:36:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f685bce8080cd817adc67a7c06fb6834fa356139
      https://github.com/llvm/llvm-project/commit/f685bce8080cd817adc67a7c06fb6834fa356139
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
    M llvm/lib/Target/PowerPC/PPCInstrInfo.h

  Log Message:
  -----------
  [PowerPC][NFC] Add a function to determine if a call needs to be NOTOC.

Add the isNoTOCCallInstr function to PPCInstrInfo to determine if a call opcode
does not need a TOC restore after the call. All call opcodes should be listed in
this function. A default unreachable in this function should force future call
opcodes to also be added.

This is a follow up patch to D122012

Reviewed By: jsji, shchenz

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




More information about the All-commits mailing list