]> granicus.if.org Git - llvm/commit
[ThinLTO] Use NoPromote flag in summary during promotion
authorTeresa Johnson <tejohnson@google.com>
Sat, 29 Oct 2016 21:31:48 +0000 (21:31 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 29 Oct 2016 21:31:48 +0000 (21:31 +0000)
commit8c54a7928553fa8ff6e71d725e202e55a4488742
tree8635225c9c2fbeee9e107bb5dc9612118819b640
parent22037077ec95e21eff71de4c06b782c57070a2b2
[ThinLTO] Use NoPromote flag in summary during promotion

Summary:
Replace the check of whether a GV has a section with the flag check
in the summary. This is in preparation for using the NoPromote flag
to convey other situations when we can't promote (e.g. locals used in
inline asm).

Reviewers: mehdi_amini

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285507 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/FunctionImportUtils.h
lib/Transforms/Utils/FunctionImportUtils.cpp