[all-commits] [llvm/llvm-project] 2937f8: [coro async] Cap the alignment of spilled values (...

Arnold Schwaighofer via All-commits all-commits at lists.llvm.org
Wed Jul 7 08:07:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2937f8d14840f54bb10daf71c7af236f4d897884
      https://github.com/llvm/llvm-project/commit/2937f8d14840f54bb10daf71c7af236f4d897884
  Author: Arnold Schwaighofer <aschwaighofer at apple.com>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/test/Transforms/Coroutines/coro-async.ll

  Log Message:
  -----------
  [coro async] Cap the alignment of spilled values (vs.  allocas) at the max frame alignment

Before this patch we would normally use the ABI alignment which can be
to high for the context alginment.

For spilled values we don't need ABI alignment, since the frame entry's
address is not escaped.

rdar://79664965

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




More information about the All-commits mailing list