File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
lib/SILOptimizer/PassManager
test/sil-passpipeline-dump Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -639,25 +639,24 @@ SILPassPipelinePlan
639
639
SILPassPipelinePlan::getOnonePassPipeline (const SILOptions &Options) {
640
640
SILPassPipelinePlan P (Options);
641
641
642
- // First specialize user-code.
643
- P.startPipeline (" Prespecialization" );
644
- P.addUsePrespecialized ();
642
+ // First serialize the SIL if we are asked to.
643
+ P.startPipeline (" Serialization" );
644
+ P.addSerializeSILPass ();
645
+
646
+ // And then strip ownership...
647
+ if (!Options.StripOwnershipDuringDiagnosticsPipeline )
648
+ P.addOwnershipModelEliminator ();
645
649
650
+ // Finally perform some small transforms.
646
651
P.startPipeline (" Rest of Onone" );
652
+ P.addUsePrespecialized ();
647
653
648
654
// Has only an effect if the -assume-single-thread option is specified.
649
655
P.addAssumeSingleThreaded ();
650
656
651
657
// Has only an effect if the -gsil option is specified.
652
658
P.addSILDebugInfoGenerator ();
653
659
654
- // Finally serialize the SIL if we are asked to.
655
- P.addSerializeSILPass ();
656
-
657
- // And then strip ownership before we IRGen.
658
- if (!Options.StripOwnershipDuringDiagnosticsPipeline )
659
- P.addOwnershipModelEliminator ();
660
-
661
660
return P;
662
661
}
663
662
Original file line number Diff line number Diff line change 3
3
4
4
// CHECK: [
5
5
// CHECK: [
6
- // CHECK: "Prespecialization ",
7
- // CHECK-NEXT : ["UsePrespecialized ","use-prespecialized "]
6
+ // CHECK: "Serialization ",
7
+ // CHECK: ["SerializeSILPass ","serialize-sil "]
8
8
// CHECK: ],
9
9
// CHECK: [
10
10
// CHECK: "Rest of Onone",
11
- // CHECK-NEXT: ["AssumeSingleThreaded","sil-assume-single-threaded"],
12
- // CHECK-NEXT: ["SILDebugInfoGenerator","sil-debuginfo-gen"]
11
+ // CHECK: ["UsePrespecialized","use-prespecialized"],
12
+ // CHECK: ["AssumeSingleThreaded","sil-assume-single-threaded"],
13
+ // CHECK: ["SILDebugInfoGenerator","sil-debuginfo-gen"]
13
14
// CHECK: ]
14
- // CHECK: ]
15
+ // CHECK: ]
You can’t perform that action at this time.
0 commit comments