Skip to content

Simple SILOptimizer peepholes for packs #65119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Apr 12, 2023

The goal here is to inline away (repeat each t) for forming a tuple value from the elements of a value pack in the case where the pack becomes concrete. We're not quite there yet; there are still some unnecessary pack-related SIL instructions remaining.

@slavapestov slavapestov force-pushed the sil-optimizer-peepholes-for-packs branch from eac722e to e7eb7c3 Compare April 12, 2023 22:28
@slavapestov slavapestov force-pushed the sil-optimizer-peepholes-for-packs branch from e7eb7c3 to 0896540 Compare April 12, 2023 22:29
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov force-pushed the sil-optimizer-peepholes-for-packs branch from 18fd58d to fa28d14 Compare April 13, 2023 15:49
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@eeckstein
Copy link
Contributor

@slavapestov Sorry I missed this PR. Just one comment: Note that it's now possible to implement SILCombine peepholes in swift. Example: https://github.com/apple/swift/blob/main/SwiftCompilerSources/Sources/Optimizer/InstructionSimplification/SimplifyStrongRetainRelease.swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants