[all-commits] [llvm/llvm-project] 7ece20: [Lanai] fix lowering wide returns

Serge Bazanski via All-commits all-commits at lists.llvm.org
Thu Aug 5 21:08:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ece20505f12b92d63aa6de0c92d41ac25ab8820
      https://github.com/llvm/llvm-project/commit/7ece20505f12b92d63aa6de0c92d41ac25ab8820
  Author: Serge Bazanski <q3k at q3k.org>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M llvm/lib/Target/Lanai/LanaiISelLowering.cpp
    M llvm/lib/Target/Lanai/LanaiISelLowering.h
    A llvm/test/CodeGen/Lanai/lowering-128.ll

  Log Message:
  -----------
  [Lanai] fix lowering wide returns

This implements LanaiTargetLowering::CanLowerReturn, thereby ensuring
all return values conform to the RetCC and get sret-demoted as
necessary.

A regression test is also added that exercises this functionality.

Reviewed By: jpienaar

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




More information about the All-commits mailing list