[PATCH] D57898: CodeGen: Fix PR40605: split constant structures generated by -ftrivial-auto-var-init when emitting initializators

Alexander Potapenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 12 07:34:48 PST 2019


glider marked 4 inline comments as done.
glider added inline comments.
Herald added a subscriber: jdoerfert.


================
Comment at: tools/clang/test/CodeGenCXX/auto-var-init.cpp:496
 // ZERO-LABEL: @test_smallpartinit_uninit()
 // ZERO: call void @llvm.memset{{.*}}, i8 0,
 
----------------
jfb wrote:
> I wonder if (maybe in a separate patch) you also want to avoid `memset` when something is pretty small.
If I'm understanding your request correctly, the same code also handles the memset() case for zero-initialization.


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

https://reviews.llvm.org/D57898





More information about the cfe-commits mailing list