[PATCH] D14819: [GlobalOpt] Localize some globals that have non-instruction users
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 06:43:21 PST 2015
jmolloy created this revision.
jmolloy added reviewers: joker.eph, dexonsmith.
jmolloy added a subscriber: llvm-commits.
jmolloy set the repository for this revision to rL LLVM.
We currently bail out of global localization if the global has non-instruction users. However, often these can be simple bitcasts or constant-GEPs, which we can easily turn into instructions before localizing. Be a bit more aggressive.
Repository:
rL LLVM
http://reviews.llvm.org/D14819
Files:
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/localize-constexpr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14819.40638.patch
Type: text/x-patch
Size: 4132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/35fe5b86/attachment.bin>
More information about the llvm-commits
mailing list