]> granicus.if.org Git - llvm/commit
[ThinLTO] Fix dead stripping analysis for SamplePGO
authorTeresa Johnson <tejohnson@google.com>
Wed, 20 Sep 2017 17:09:47 +0000 (17:09 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 20 Sep 2017 17:09:47 +0000 (17:09 +0000)
commitf5c82586b2b214349bd7e593b3111aa912248db0
tree5611bd5718d219761cd3cc5d68f73d8cc40afd9f
parent76fe1ec31060ec04d4d94958e7eb89e1184cfc76
[ThinLTO] Fix dead stripping analysis for SamplePGO

Summary:
The fix for dead stripping analysis in the case of SamplePGO indirect
calls to local functions (r313151) introduced the possibility of an
infinite loop.

Make sure we check for the value being already live after we update it
for SamplePGO indirect call handling.

Reviewers: danielcdh

Subscribers: mehdi_amini, inglorion, llvm-commits, eraman

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionImport.cpp
test/Transforms/PGOProfile/Inputs/thinlto_samplepgo_icp3.ll [new file with mode: 0644]
test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll [new file with mode: 0644]