[all-commits] [llvm/llvm-project] b0f10a: [C++20] [Modules] Don't generate the defintition f...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue May 28 22:40:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0f10a1dc34aa1b73faeeabdc2d348074a02c75d
      https://github.com/llvm/llvm-project/commit/b0f10a1dc34aa1b73faeeabdc2d348074a02c75d
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-05-29 (Wed, 29 May 2024)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCXX/partitions.cpp
    A clang/test/Modules/pr93497.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't generate the defintition for non-const available external variables (#93530)

Close https://github.com/llvm/llvm-project/issues/93497

The root cause of the problem is, we mark the variable from other
modules as constnant in LLVM incorrectly. This patch fixes this problem
by not emitting the defintition for non-const available external
variables. Since the non const available externally variable is not
helpful to the optimization.



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