[PATCH] D64742: Allow using -ftrivial-auto-var-init=zero in C mode without extra flags

Alexander Potapenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 21 07:38:47 PDT 2019


glider added subscribers: rsmith, dvyukov, dblaikie, arthur.j.odwyer, fwyzard, kristina, mehdi_amini, troyj.
glider added a comment.

Adding more people from the original discussion.

Folks, we're now stuck in a situation where there's a potential buy-in from the Linux kernel community for stack initialization, but they won't ever use an option guarded by -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang. On theĀ other hand, using pattern initialization is still costly, and will probably remain such, as there are little investments into Clang's DSE. (The nature of pattern initialization also suggests there'll always be corner cases in which zero initialization is still cheaper).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64742/new/

https://reviews.llvm.org/D64742





More information about the cfe-commits mailing list