File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
SwiftCompilerSources/Sources/Optimizer/FunctionPasses
test/sil-passpipeline-dump Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 9
9
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
//
11
11
//===----------------------------------------------------------------------===//
12
+ //
13
+ // Assume that user code is single-threaded.
14
+ //
15
+ // Convert all reference counting operations into non-atomic ones.
16
+ //
17
+ // To get rid of most atomic reference counting operations, the standard
18
+ // library should be compiled in this mode as well .
19
+ //
20
+ // This pass affects only reference counting operations resulting from SIL
21
+ // instructions. It wouldn't affect places in the runtime C++ code which
22
+ // hard-code calls to retain/release. We could take advantage of the Instruments
23
+ // instrumentation stubs to redirect calls from the runtime if it was
24
+ // significant, or else just build a single-threaded variant of the runtime.
25
+ //
26
+ //===----------------------------------------------------------------------===//
12
27
13
28
import SIL
14
29
Original file line number Diff line number Diff line change 8
8
// CHECK: passes: [ "serialize-sil", "ownership-model-eliminator" ]
9
9
// CHECK: ---
10
10
// CHECK: name: Rest of Onone
11
- // CHECK: passes: [ "use-prespecialized", "sil-assume-single-threaded",
12
- // CHECK: "sil-debuginfo-gen" ]
11
+ // CHECK: passes: [ "use-prespecialized", "onone-prespecializer", "sil-debuginfo-gen" ]
13
12
// CHECK: ...
You can’t perform that action at this time.
0 commit comments