Skip to content

Commit 8af3bcc

Browse files
committed
SILOptimizer: Disable PackSpecialization pass to unblock SWBs
rdar://164515160
1 parent 3545603 commit 8af3bcc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
527527
// of embedded Swift.
528528
if (!P.getOptions().EmbeddedSwift) {
529529
P.addGenericSpecializer();
530-
P.addPackSpecialization();
530+
// P.addPackSpecialization();
531531
// Run devirtualizer after the specializer, because many
532532
// class_method/witness_method instructions may use concrete types now.
533533
P.addDevirtualizer();

test/SILOptimizer/pack_specialization.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: *
12
// RUN: %target-sil-opt %s -pack-specialization | %FileCheck %s
23

34
sil_stage canonical

test/SILOptimizer/pack_specialization.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: *
12
// RUN: %target-swift-frontend %s -emit-ir -O | %FileCheck %s
23

34
// REQUIRES: swift_in_compiler

0 commit comments

Comments
 (0)