[all-commits] [llvm/llvm-project] 4a2757: Make globals used for array initialization codegen...

Hans via All-commits all-commits at lists.llvm.org
Fri Mar 17 01:28:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a2757d80f0af48e65d90e7eaf268f78bcfa997f
      https://github.com/llvm/llvm-project/commit/4a2757d80f0af48e65d90e7eaf268f78bcfa997f
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M clang/lib/CodeGen/CGExprAgg.cpp
    M clang/test/CodeGen/init.c
    M clang/test/CodeGen/label-array-aggregate-init.c

  Log Message:
  -----------
  Make globals used for array initialization codegen constant

As pointed out in D133835 these globals will never be written to
(they're only used for trivially copyable types), so they can always be
constant.

Differential revision: https://reviews.llvm.org/D146211




More information about the All-commits mailing list