diff options
author | Teresa Johnson <tejohnson@google.com> | 2019-11-18 12:03:58 -0800 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2019-11-18 12:55:53 -0800 |
commit | cc1b0bc24d2703087d80e4f4dc0560879733299a (patch) | |
tree | a6404d66385bedb815df52cfe63018bb17ffda6a /lldb/packages/Python/lldbsuite/test/sample_test | |
parent | ee31adb7fa42f5b601d9612f23755b4604f83cac (diff) | |
download | bcm5719-llvm-cc1b0bc24d2703087d80e4f4dc0560879733299a.tar.gz bcm5719-llvm-cc1b0bc24d2703087d80e4f4dc0560879733299a.zip |
[ThinLTO] Avoid extra index lookup during promotion
Summary:
Pass down the already accessed ValueInfo to shouldPromoteLocalToGlobal,
to avoid an unnecessary extra index lookup.
Add some assertion checking to confirm we have a non-empty VI when
expected.
Also some misc cleanup, merging the two versions of
doImportAsDefinition, since one was only called by the other, and
unnecessarily passed in a member variable.
Reviewers: steven_wu, pcc, evgeny777
Reviewed By: evgeny777
Subscribers: mehdi_amini, inglorion, hiraditya, dexonsmith, arphaman, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70337
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/sample_test')
0 files changed, 0 insertions, 0 deletions