[all-commits] [llvm/llvm-project] 4ca753: [RISCV] Implement mayBeEmittedAsTailCall for tail ...

wweiandrew via All-commits all-commits at lists.llvm.org
Tue Feb 18 07:58:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ca753f4e3ed194ada95f3911a58d70915ce2acd
      https://github.com/llvm/llvm-project/commit/4ca753f4e3ed194ada95f3911a58d70915ce2acd
  Author: Andrew Wei <weiwei64 at huawei.com>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/test/CodeGen/RISCV/tail-calls.ll

  Log Message:
  -----------
  [RISCV] Implement mayBeEmittedAsTailCall for tail call optimization

Implement TargetLowering callback mayBeEmittedAsTailCall for riscv in CodeGenPrepare,
which will duplicate return instructions to enable tailcall optimization.

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




More information about the All-commits mailing list