[PATCH] [CodeGen] Use module flag metadata to enable global-merge.

Ahmed Bougacha ahmed.bougacha at gmail.com
Fri Feb 27 18:55:41 PST 2015


Hi dexonsmith,

This lets clang pick, in LTO, whether to enable or not the pass.

Uses the metadata emitted by http://reviews.llvm.org/D7968

Also, the -enable-global-merge flag overrides the module flag.

-Ahmed

http://reviews.llvm.org/D7969

Files:
  lib/CodeGen/GlobalMerge.cpp
  test/CodeGen/AArch64/global-merge-moduleflag-disabled.ll
  test/CodeGen/AArch64/global-merge-moduleflag-enabled.ll
  test/CodeGen/ARM/2010-12-15-elf-lcomm.ll
  test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
  test/CodeGen/ARM/2011-06-29-MergeGlobalsAlign.ll
  test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll
  test/CodeGen/ARM/global-merge-1.ll
  test/CodeGen/ARM/global-merge-addrspace.ll
  test/CodeGen/ARM/global-merge.ll
  test/MC/ARM/elf-reloc-01.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7969.20926.patch
Type: text/x-patch
Size: 8071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150228/b960ccce/attachment.bin>


More information about the llvm-commits mailing list