mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reapply "Revert "[func-sig-opts] If we know all callsites of a function, delete the old unoptimized function instead of creating a thunk.""
This reverts commit r23725. This time with fixes so we don't hit that assertion. Swift SVN r23762
This commit is contained in:
@@ -154,6 +154,10 @@ public:
|
||||
return LoweredType;
|
||||
}
|
||||
|
||||
bool canBeDeleted() const {
|
||||
return !getRefCount() && !isZombie();
|
||||
}
|
||||
|
||||
/// Return the number of entities referring to this function (other
|
||||
/// than the SILModule).
|
||||
unsigned getRefCount() const { return RefCount; }
|
||||
|
||||
Reference in New Issue
Block a user