mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SILOptimizer: Add some FIXMEs and a cleanup
This commit is contained in:
@@ -695,8 +695,7 @@ bool swift::canDevirtualizeClassMethod(FullApplySite AI,
|
||||
}
|
||||
|
||||
// We need to disable the “effectively final” opt if a function is inlinable
|
||||
if (isEffectivelyFinalMethod && AI.getFunction()->getResilienceExpansion() ==
|
||||
ResilienceExpansion::Minimal) {
|
||||
if (isEffectivelyFinalMethod && AI.getFunction()->isSerialized()) {
|
||||
LLVM_DEBUG(llvm::dbgs() << " FAIL: Could not optimize function "
|
||||
"because it is an effectively-final inlinable: "
|
||||
<< AI.getFunction()->getName() << "\n");
|
||||
|
||||
Reference in New Issue
Block a user