[all-commits] [llvm/llvm-project] e69869: Reapply: [IRGen] Emit lifetime intrinsics around t...

Emma Pilkington via All-commits all-commits at lists.llvm.org
Wed Aug 16 15:28:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e698695fbbf62e6676f8907665187f2d2c4d814b
      https://github.com/llvm/llvm-project/commit/e698695fbbf62e6676f8907665187f2d2c4d814b
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGCall.h
    A clang/test/CodeGen/lifetime-call-temp.c
    A clang/test/CodeGenCXX/amdgcn-call-with-aggarg.cpp
    M clang/test/CodeGenCXX/stack-reuse-miscompile.cpp
    M clang/test/CodeGenCoroutines/pr59181.cpp

  Log Message:
  -----------
  Reapply: [IRGen] Emit lifetime intrinsics around temporary aggregate argument allocas

This reverts commit e26c24b849211f35a988d001753e0cd15e4a9d7b.

These temporaries are only used in the callee, and their memory can be
reused after the call is complete.

rdar://58552124

Link: https://github.com/llvm/llvm-project/issues/38157
Link: https://github.com/llvm/llvm-project/issues/41896
Link: https://github.com/llvm/llvm-project/issues/43598
Link: https://github.com/ClangBuiltLinux/linux/issues/39
Link: https://reviews.llvm.org/rGfafc6e4fdf3673dcf557d6c8ae0c0a4bb3184402

Reviewed By: rjmccall

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




More information about the All-commits mailing list