Merge pull request #85491 from aidan-hall/disable-pack-specialization

SILOptimizer: Disable PackSpecialization pass until it has been properly fixed.

rdar://164515160
This commit is contained in:
Aidan Hall
2025-11-18 15:34:22 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -527,7 +527,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
// of embedded Swift.
if (!P.getOptions().EmbeddedSwift) {
P.addGenericSpecializer();
P.addPackSpecialization();
// P.addPackSpecialization();
// Run devirtualizer after the specializer, because many
// class_method/witness_method instructions may use concrete types now.
P.addDevirtualizer();

View File

@@ -1,3 +1,4 @@
// XFAIL: *
// RUN: %target-swift-frontend %s -emit-ir -O | %FileCheck %s
// REQUIRES: swift_in_compiler