[all-commits] [llvm/llvm-project] 10cade: [ThinLTO] Always import constants

eleviant via All-commits all-commits at lists.llvm.org
Wed Jan 15 08:32:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 10cadee5ce86e80d7486855199d329951f38af01
      https://github.com/llvm/llvm-project/commit/10cadee5ce86e80d7486855199d329951f38af01
  Author: evgeny <eleviant at accesssoftek.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M llvm/include/llvm/IR/ModuleSummaryIndex.h
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/ModuleSummaryIndex.cpp
    M llvm/test/Assembler/thinlto-summary.ll
    M llvm/test/Assembler/thinlto-vtable-summary.ll
    M llvm/test/Bitcode/thinlto-function-summary-refgraph.ll
    M llvm/test/ThinLTO/X86/Inputs/dot-dumper.ll
    A llvm/test/ThinLTO/X86/Inputs/import-constant.ll
    A llvm/test/ThinLTO/X86/Inputs/import-ro-constant-bar.ll
    A llvm/test/ThinLTO/X86/Inputs/import-ro-constant-foo.ll
    M llvm/test/ThinLTO/X86/dot-dumper.ll
    A llvm/test/ThinLTO/X86/import-constant.ll
    A llvm/test/ThinLTO/X86/import-ro-constant.ll
    M llvm/test/ThinLTO/X86/load-store-caching.ll
    M llvm/test/ThinLTO/X86/referenced_by_constant.ll

  Log Message:
  -----------
  [ThinLTO] Always import constants

This patch imports constant variables even when they can't be internalized
(which results in promotion). This offers some extra constant folding
opportunities.

Differential revision: https://reviews.llvm.org/D70404




More information about the All-commits mailing list