[all-commits] [llvm/llvm-project] 038dc2: [CoroSplit] Always erase lifetime intrinsics for s...

Weibo He via All-commits all-commits at lists.llvm.org
Tue Jun 3 03:53:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 038dc2c63b2db744be6afeea74b18be4938149e9
      https://github.com/llvm/llvm-project/commit/038dc2c63b2db744be6afeea74b18be4938149e9
  Author: Weibo He <NewSigma at 163.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp

  Log Message:
  -----------
  [CoroSplit] Always erase lifetime intrinsics for spilled allocas (#142551)

If the control flow between `lifetime.start` and `lifetime.end` is too
complex, it is acceptable to give up the optimization opportunity and
collect the alloca to the frame. However, storing to the frame will
lengthen the lifetime of the alloca, and the sanitizer will complain. I
propose we always erase lifetime intrinsics of spilled allocas.

Fix #124612

---------

Co-authored-by: Chuanqi Xu <yedeng.yd at linux.alibaba.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list