File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ llvm::cl::opt<bool> PrintShortestPathInfo(
43
43
" print-shortest-path-info" , llvm::cl::init(false ),
44
44
llvm::cl::desc(" Print shortest-path information for inlining" ));
45
45
46
+ llvm::cl::opt<bool > EnableSILInliningOfGenerics (
47
+ " sil-inline-generics" , llvm::cl::init(false ),
48
+ llvm::cl::desc(" Enable inlining of generics" ));
49
+
46
50
// ===----------------------------------------------------------------------===//
47
51
// ConstantTracker
48
52
// ===----------------------------------------------------------------------===//
@@ -1121,7 +1125,8 @@ SILFunction *SILPerformanceInliner::getEligibleFunction(FullApplySite AI) {
1121
1125
1122
1126
// We don't support this yet.
1123
1127
if (AI.hasSubstitutions ()) {
1124
- return nullptr ;
1128
+ if (!EnableSILInliningOfGenerics)
1129
+ return nullptr ;
1125
1130
}
1126
1131
1127
1132
SILFunction *Caller = AI.getFunction ();
You can’t perform that action at this time.
0 commit comments