[PATCH] D16124: Add to the split module utility an SCC based method which allows not to globalize any local variables.

Sergei Larin via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 12:37:53 PST 2016


slarin created this revision.
slarin added a subscriber: llvm-commits.
Herald added a subscriber: joker.eph.

Currently llvm::SplitModule as the first step globalizes all local objects, which might not be desirable in some scenarios.
This change adds a new utility llvm::SplitModuleSelective that uses SCC approach to search for a balanced partition without the need to externalize symbols.
Such partition might not be possible or fully balanced for a given number of partitions, and is a function of the module properties (global/local dependencies within the module).

Joint development Tobias Edler von Koch (tobias at codeaurora.org) and Sergei Larin (slarin at codeaurora.org)

http://reviews.llvm.org/D16124

Files:
  include/llvm/CodeGen/ParallelCG.h
  include/llvm/Transforms/Utils/SplitModule.h
  lib/CodeGen/ParallelCG.cpp
  lib/LTO/LTOCodeGenerator.cpp
  lib/Transforms/Utils/SplitModule.cpp
  test/tools/llvm-split/preserve-locals.ll
  test/tools/llvm-split/scc-alias.ll
  test/tools/llvm-split/scc-callchain.ll
  test/tools/llvm-split/scc-comdat.ll
  test/tools/llvm-split/scc-constants.ll
  test/tools/llvm-split/scc-cycle.ll
  test/tools/llvm-split/scc-global2global.ll
  tools/gold/gold-plugin.cpp
  tools/llvm-split/llvm-split.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16124.44662.patch
Type: text/x-patch
Size: 26290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160112/4c97df7e/attachment.bin>


More information about the llvm-commits mailing list