Skip to content

Commit 5b93eb3

Browse files
committed
Optimizer: remove the AllocVectorLowering pass
It's not needed anymore, because the "FixedArray" experimental feature is replaced by inline-arrays.
1 parent 7a7e6c2 commit 5b93eb3

File tree

9 files changed

+0
-1257
lines changed

9 files changed

+0
-1257
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/AllocVectorLowering.swift

Lines changed: 0 additions & 445 deletions
This file was deleted.

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

99
swift_compiler_sources(Optimizer
10-
AllocVectorLowering.swift
1110
AssumeSingleThreaded.swift
1211
AsyncDemotion.swift
1312
BooleanLiteralFolding.swift

SwiftCompilerSources/Sources/Optimizer/PassManager/PassRegistration.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ private func registerSwiftPasses() {
6868
registerPass(stackProtection, { stackProtection.run($0) })
6969

7070
// Function passes
71-
registerPass(allocVectorLowering, { allocVectorLowering.run($0) })
7271
registerPass(asyncDemotion, { asyncDemotion.run($0) })
7372
registerPass(booleanLiteralFolding, { booleanLiteralFolding.run($0) })
7473
registerPass(letPropertyLowering, { letPropertyLowering.run($0) })

include/swift/AST/DiagnosticsSIL.def

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,12 +1141,6 @@ NOTE(rbi_add_generic_parameter_sendable_conformance,none,
11411141
ERROR(deinit_not_visible, none,
11421142
"deinit of non-copyable type not visible in the current module", ())
11431143

1144-
ERROR(vector_capacity_not_constant, none,
1145-
"vector capacity needs to be constant", ())
1146-
1147-
ERROR(fixed_arrays_not_available, none,
1148-
"fixed arrays are only available with -enable-experimental-feature FixedArrays", ())
1149-
11501144
ERROR(lifetime_variable_outside_scope, none,
11511145
"lifetime-dependent variable '%0' escapes its scope", (Identifier))
11521146
ERROR(lifetime_value_outside_scope, none,

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,6 @@ SWIFT_FUNCTION_PASS(NamedReturnValueOptimization, "named-return-value-optimizati
429429
"Optimize copies to an indirect return value")
430430
SWIFT_FUNCTION_PASS(StripObjectHeaders, "strip-object-headers",
431431
"Sets the bare flag on objects which don't need their headers")
432-
SWIFT_FUNCTION_PASS(AllocVectorLowering, "alloc-vector-lowering",
433-
"lowering of allocVector builtins")
434432
PASS(SimplifyBBArgs, "simplify-bb-args",
435433
"SIL Block Argument Simplification")
436434
PASS(SimplifyCFG, "simplify-cfg",

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
257257

258258
P.addMandatoryPerformanceOptimizations();
259259
P.addOnoneSimplification();
260-
P.addAllocVectorLowering();
261260
P.addInitializeStaticGlobals();
262261

263262
// MandatoryPerformanceOptimizations might create specializations that are not

test/SILOptimizer/alloc_vector_lowering.sil

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)