[PATCH] D46640: [GlobalMerge] Exit early if only one global is to be merged

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 08:10:52 PDT 2018


haicheng created this revision.
haicheng added reviewers: ab, bob.wilson, qcolombet, eli.friedman.
Herald added subscribers: kristof.beyls, mcrosier.
Herald added a reviewer: javed.absar.

I think this can save some compilation time and prevent some unnecessary changes.

Two test cases are changed.  In AArch64/global-merge-3.ll, y is not merged with any other globals, but is changed to @_MergedGlobals.1 (or __MergedGlobals_y in the case of ios).  In ARM/global-merge.ll, g3 is not merged with other globals, but is changed to _MergedGlobals.1.


Repository:
  rL LLVM

https://reviews.llvm.org/D46640

Files:
  lib/CodeGen/GlobalMerge.cpp
  test/CodeGen/AArch64/global-merge-3.ll
  test/CodeGen/ARM/global-merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46640.145916.patch
Type: text/x-patch
Size: 3920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/c2320463/attachment.bin>


More information about the llvm-commits mailing list