[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
Thu Jan 14 08:52:34 PST 2016
slarin updated this revision to Diff 44891.
slarin added a comment.
Add to the split module utility an SCC based method which allows not to globalize any local variables.
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/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/llvm-split/llvm-split.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16124.44891.patch
Type: text/x-patch
Size: 21871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/12f5c048/attachment.bin>
More information about the llvm-commits
mailing list