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 c58788a commit fec443aCopy full SHA for fec443a
SwiftCompilerSources/Sources/Optimizer/FunctionPasses/ClosureSpecialization.swift
@@ -122,8 +122,7 @@ let autodiffClosureSpecialization = FunctionPass(name: "autodiff-closure-special
122
(function: Function, context: FunctionPassContext) in
123
124
guard !function.isDefinedExternally,
125
- function.isAutodiffVJP,
126
- function.blocks.singleElement != nil else {
+ function.isAutodiffVJP else {
127
return
128
}
129
0 commit comments