[PATCH] D49209: CodeGen: specify alignment for automatic variable initialization

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 12 15:26:27 PDT 2018


jfb added a comment.

I updated the patch to use `Address`, and also use `inbounds`. This was a bit tricky because of the GEPs. I also updated tests which run into this codegen. Only the following tests actually hit this code, and not all check these stores:

  Clang :: CodeGen/2004-03-09-LargeArrayInitializers.c
  Clang :: CodeGen/indirect-goto.c
  Clang :: CodeGen/init.c
  Clang :: CodeGenCXX/float128-declarations.cpp
  Clang :: CodeGenObjC/messages-2.m
  Clang :: CodeGenObjC/messages.m
  Clang :: CodeGenOpenCL/address-space-constant-initializers.cl
  Clang :: CodeGenOpenCL/partial_initializer.cl
  Clang :: CodeGenOpenCL/private-array-initialization.cl


Repository:
  rC Clang

https://reviews.llvm.org/D49209





More information about the cfe-commits mailing list