We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0eb312 commit ad7fed0Copy full SHA for ad7fed0
lib/SILOptimizer/IPO/EagerSpecializer.cpp
@@ -736,9 +736,12 @@ void EagerSpecializerTransform::run() {
736
737
// Process functions in any order.
738
for (auto &F : *getModule()) {
739
- if (!F.shouldOptimize()) {
+ // TODO: we should support ownership here but first we'll have to support
740
+ // ownership in GenericFuncSpecializer.
741
+ if (!F.shouldOptimize() || F.hasOwnership()) {
742
LLVM_DEBUG(dbgs() << " Cannot specialize function " << F.getName()
- << " marked to be excluded from optimizations.\n");
743
+ << " because it has ownership or is marked to be "
744
+ "excluded from optimizations.\n");
745
continue;
746
}
747
// Only specialize functions in their home module.
0 commit comments