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 99// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010//
1111//===----------------------------------------------------------------------===//
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+ //===----------------------------------------------------------------------===//
1227
1328import SIL
1429
Original file line number Diff line number Diff line change 88// CHECK: passes: [ "serialize-sil", "ownership-model-eliminator" ]
99// CHECK: ---
1010// 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" ]
1312// CHECK: ...
You can’t perform that action at this time.
0 commit comments