[PATCH] D63444: [ThinLTO] Optimize write-only globals out

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 10:22:20 PDT 2019


evgeny777 created this revision.
evgeny777 added reviewers: tejohnson, steven_wu, mehdi_amini.
Herald added subscribers: dang, arphaman, dexonsmith, inglorion.

This patch uses approach introduced in D49362 <https://reviews.llvm.org/D49362> to internalize variables with write-only access. Optimizer in the backend eliminates them together with corresponding stores.

Here is test result using LLVM test suite:

F9281707: Selection_002.png <https://reviews.llvm.org/F9281707>


https://reviews.llvm.org/D63444

Files:
  include/llvm/IR/ModuleSummaryIndex.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/AsmParser/LLParser.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/AsmWriter.cpp
  lib/IR/ModuleSummaryIndex.cpp
  lib/LTO/LTO.cpp
  lib/Transforms/IPO/FunctionImport.cpp
  lib/Transforms/Utils/FunctionImportUtils.cpp
  test/Assembler/thinlto-summary.ll
  test/Bitcode/summary_version.ll
  test/Bitcode/thinlto-alias.ll
  test/Bitcode/thinlto-alias2.ll
  test/Bitcode/thinlto-function-summary-callgraph-cast.ll
  test/Bitcode/thinlto-function-summary-callgraph-pgo.ll
  test/Bitcode/thinlto-function-summary-callgraph-profile-summary.ll
  test/Bitcode/thinlto-function-summary-callgraph-relbf.ll
  test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll
  test/Bitcode/thinlto-function-summary-callgraph.ll
  test/Bitcode/thinlto-function-summary-refgraph.ll
  test/ThinLTO/X86/Inputs/dot-dumper2.ll
  test/ThinLTO/X86/dot-dumper2.ll
  test/ThinLTO/X86/index-const-prop.ll
  test/ThinLTO/X86/index-const-prop2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63444.205110.patch
Type: text/x-patch
Size: 58930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190617/ff5e6fda/attachment.bin>


More information about the llvm-commits mailing list