OSDN Git Service

[ThinLTO] Fix ThinLTO crash
authorTeresa Johnson <tejohnson@google.com>
Sat, 19 Aug 2017 18:04:25 +0000 (18:04 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 19 Aug 2017 18:04:25 +0000 (18:04 +0000)
commit77be502efc104e9569813daf99a8ab4a24437be4
treea10735f4dc41e9b35164a077dd852675ce815f97
parentd826b54fdb709a886cc6c8fb548d2e1dc1d3faf2
[ThinLTO] Fix ThinLTO crash

Summary:
Follow up to fix in r311023, which fixed the case where the combined
index is written to disk. The same samplePGO logic exists for the
in-memory index when computing imports, so we need to filter out
GlobalVariable summaries there too.

Reviewers: davidxl

Subscribers: inglorion, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionImport.cpp
test/Transforms/FunctionImport/Inputs/funcimport_var2.ll
test/Transforms/FunctionImport/funcimport_var.ll