mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-16 03:44:10 -04:00
ThinLTO : Import always_inline functions irrespective of the threshold
Summary: A user can force a function to be inlined by specifying the always_inline attribute. Currently, thinlto implementation is not aware of always_inline functions and does not guarantee import of such functions, which in turn can prevent inlining of such functions. Patch by Bharathi Seshadri <bseshadr@cisco.com> Reviewers: tejohnson Reviewed By: tejohnson Subscribers: mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70014
This commit is contained in:
@@ -1006,6 +1006,7 @@ static uint64_t getEncodedFFlags(FunctionSummary::FFlags Flags) {
|
||||
RawFlags |= (Flags.NoRecurse << 2);
|
||||
RawFlags |= (Flags.ReturnDoesNotAlias << 3);
|
||||
RawFlags |= (Flags.NoInline << 4);
|
||||
RawFlags |= (Flags.AlwaysInline << 5);
|
||||
return RawFlags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user