[PATCH] D18235: [LTO] Call the optimizer before invoking codegen

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 12:40:21 PDT 2016


davide updated this revision to Diff 50965.
davide added a comment.

Addressed Sean's comments.

- The original test was augmented with an asm inline statement so that the global constructor doesn't get reclaimed.
- I added another test to ensure the optimizer strips the unused global constructor (similarly to what I did before in my previous patch).

This is just sanity checking, we may want to test other stuff in the future.
Rafael, Sean, you OK with this?


http://reviews.llvm.org/D18235

Files:
  ELF/SymbolTable.cpp
  test/ELF/lto/ctors.ll
  test/ELF/lto/ltopasses-basic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18235.50965.patch
Type: text/x-patch
Size: 4287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160317/75c0fb86/attachment.bin>


More information about the llvm-commits mailing list