mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
[ThinLTO] Split NotEligibleToImport into legality and inlinability flags
Summary: The NotEligibleToImport flag on the GlobalValueSummary was set if it isn't legal to import (e.g. because it references unpromotable locals) and when it can't be inlined (in which case importing is pointless). I split out the inlinable piece into a separate flag on the FunctionSummary (doesn't make sense for aliases or global variables), because in the future we may want to import for reasons other than inlining. Reviewers: davidxl Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, arphaman, llvm-commits Differential Revision: https://reviews.llvm.org/D53345 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -876,6 +876,7 @@ static FunctionSummary::FFlags getDecodedFFlags(uint64_t RawFlags) {
|
||||
Flags.ReadOnly = (RawFlags >> 1) & 0x1;
|
||||
Flags.NoRecurse = (RawFlags >> 2) & 0x1;
|
||||
Flags.ReturnDoesNotAlias = (RawFlags >> 3) & 0x1;
|
||||
Flags.NoInline = (RawFlags >> 4) & 0x1;
|
||||
return Flags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user