[nfc][thinlto] Handle global constant importing separately
authorMircea Trofin <mtrofin@google.com>
Wed, 26 Apr 2023 21:41:25 +0000 (14:41 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 27 Apr 2023 19:21:50 +0000 (12:21 -0700)
commit460ea850148b10dfd30cce32b2ac600b313324c4
treed3827ef3bf0e4a5039853a83867c4b2be8129c07
parent1176d97598a9b46573213d2d75e0c6d90226ada0
[nfc][thinlto] Handle global constant importing separately

This makes the logic for referenced globals reusable for import criteria
that don't use thresholds - in fact, we currently didn't consider any
thresholds when importing.

Differential Revision: https://reviews.llvm.org/D149298
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/IR/ModuleSummaryIndex.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp