[ThinLTO] Add an option to force summary call edges cold for debugging
authorTeresa Johnson <tejohnson@google.com>
Sat, 31 Mar 2018 00:18:08 +0000 (00:18 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 31 Mar 2018 00:18:08 +0000 (00:18 +0000)
commitdb83aceb0686c25c1a5d3db2e776bc8c9b0de3ee
treeac6a07cb3f52668da666988bbe91008368731ebc
parentef61d85fc9151a0cf588c98ea91b4849bfe79e25
[ThinLTO] Add an option to force summary call edges cold for debugging

Summary:
Useful to selectively disable importing into specific modules for
debugging/triaging/workarounds.

Reviewers: eraman

Subscribers: inglorion, llvm-commits

Differential Revision: https://reviews.llvm.org/D45062

llvm-svn: 328909
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Transforms/FunctionImport/Inputs/funcimport_forcecold.ll [new file with mode: 0644]
llvm/test/Transforms/FunctionImport/funcimport_forcecold.ll [new file with mode: 0644]
llvm/test/Transforms/FunctionImport/funcimport_forcecold_samplepgo.ll [new file with mode: 0644]