[all-commits] [llvm/llvm-project] 2b13ff: [Clang][CodeGen] Set the size of llvm.lifetime to ...

Kai Wang via All-commits all-commits at lists.llvm.org
Mon Jun 7 08:30:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b13ff69794680ea0764e516f5b69b80219771b7
      https://github.com/llvm/llvm-project/commit/2b13ff69794680ea0764e516f5b69b80219771b7
  Author: Hsiangkai Wang <kai.wang at sifive.com>
  Date:   2021-06-07 (Mon, 07 Jun 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExprAgg.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    A clang/test/CodeGen/RISCV/riscv-v-lifetime.cpp

  Log Message:
  -----------
  [Clang][CodeGen] Set the size of llvm.lifetime to unknown for scalable types.

If the memory object is scalable type, we do not know the exact size of
it at compile time. Set the size of lifetime marker to unknown if the
object is scalable one.

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




More information about the All-commits mailing list