[all-commits] [llvm/llvm-project] d567e0: [PowerPC][NFC] refactor eligible check for tail ca...

Ting Wang via All-commits all-commits at lists.llvm.org
Tue Feb 21 03:15:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d567e06946b70136d344df3d8601c5e02cb596e1
      https://github.com/llvm/llvm-project/commit/d567e06946b70136d344df3d8601c5e02cb596e1
  Author: Ting Wang <Ting.Wang.SH at ibm.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h

  Log Message:
  -----------
  [PowerPC][NFC] refactor eligible check for tail call optimization

The check logic for TCO is scattered in two functions:
IsEligibleForTailCallOptimization_64SVR4() IsEligibleForTailCallOptimization(),
and serves instruction selection phase only at this moment.

This patch aims to refactor existing logic to export an API for TCO
eligible query before instruction selection phase.

Reviewed By: shchenz, nemanjai

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




More information about the All-commits mailing list