[all-commits] [llvm/llvm-project] b5dffd: [C++20] [Modules] Don't emit function bodies which...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Oct 9 18:47:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5dffd4957dfb58c73e168a3d9b6967f03b23a6c
      https://github.com/llvm/llvm-project/commit/b5dffd4957dfb58c73e168a3d9b6967f03b23a6c
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-10-10 (Tue, 10 Oct 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/Modules/no-import-func-body.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't emit function bodies which is noinline and av… (#68501)

…ailabl externally

A workaround for https://github.com/llvm/llvm-project/issues/60996

As the title suggested, we can avoid emitting available externally
functions which is marked as noinline already. Such functions should
contribute nothing for optimizations.

The update for docs will be sent seperately if this got approved.




More information about the All-commits mailing list