[all-commits] [llvm/llvm-project] fee398: [AMDGPU] Fix amdgpu_gfx tail-call test

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Wed Apr 12 07:15:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fee3980df5c61888b54ad1c560fb8ffcd2d7ecdb
      https://github.com/llvm/llvm-project/commit/fee3980df5c61888b54ad1c560fb8ffcd2d7ecdb
  Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
  Date:   2023-04-12 (Wed, 12 Apr 2023)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/tail-call-amdgpu-gfx.ll

  Log Message:
  -----------
  [AMDGPU] Fix amdgpu_gfx tail-call test

The inreg argument prevented the tail call optimization to kick in.
Remove the inreg, so this test actually uses a tail call.

Note that it now uses s[4:5] for the return address, which is invalid,
because these registers are supposed to be callee-save.
D147096 tried to fix that problem for the C calling convention.

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




More information about the All-commits mailing list