[PATCH] D49710: [GlobalMerge] Allow merging globals with arbitrary alignment.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 23 17:27:29 PDT 2018


efriedma created this revision.
efriedma added reviewers: greened, ab.

Instead of depending on implicit padding from the structure layout code, use a packed struct and emit the padding explicitly.


Repository:
  rL LLVM

https://reviews.llvm.org/D49710

Files:
  lib/CodeGen/GlobalMerge.cpp
  test/Transforms/GlobalMerge/alignment.ll
  test/Transforms/GlobalMerge/basic.ll
  test/Transforms/GlobalMerge/debug-info.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49710.156936.patch
Type: text/x-patch
Size: 8477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180724/e4bb6dc2/attachment.bin>


More information about the llvm-commits mailing list