[all-commits] [llvm/llvm-project] db8209: [NFC] [C++20] [Modules] Test if the functions in i...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Oct 17 20:41:58 PDT 2022


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

  Changed paths:
    A clang/test/CodeGenCXX/module-funcs-from-imports.cppm

  Log Message:
  -----------
  [NFC] [C++20] [Modules] Test if the functions in importee are generated

In O0, all the functions (except the always-inline-functions) in the importee
shouldn't be imported for compilation speeds.

But with optimizations, all the potentially called function in the
importee should be imported to not prevent any inter-procedural
optimizations (primarily inline), which is pretty important for runtime
performances.

This patch adds the tests for the feature.




More information about the All-commits mailing list