Skip to content

Optimizer: enable SILCodeMotion in OSSA, but only for trivial values. #78384

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
merged 3 commits into from
Jan 2, 2025

Conversation

eeckstein
Copy link
Contributor

to-do: we should eventually remove code motion of retain and release instructions and implement them as semantic ARC optimizations in OSSA.

Also fix a problem when incrementally updating borrowed-from instructions in the PhiUpdater, which was uncovered by the other change.

This is part of fixing regressions when enabling OSSA modules:
rdar://140229560

@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein
Copy link
Contributor Author

@swift-ci please test source compatibility

@eeckstein
Copy link
Contributor Author

@swift-ci test

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci test

…nstructions

When replacing all uses, ignore existing borrowed-from instructions.

Fixes a SIL verifier error.
to-do: we should eventually remove code motion of retain and release instructions and implement them as semantic ARC optimizations in OSSA.
@eeckstein eeckstein force-pushed the enable-code-motion-in-ossa branch from f9c0890 to 53d78ab Compare January 2, 2025 10:01
@eeckstein eeckstein requested a review from xymus as a code owner January 2, 2025 10:01
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein eeckstein requested review from atrick, meg-gupta and nate-chandler and removed request for xymus January 2, 2025 10:20
Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eeckstein eeckstein merged commit f096787 into swiftlang:main Jan 2, 2025
6 checks passed
@eeckstein eeckstein deleted the enable-code-motion-in-ossa branch January 2, 2025 19:36
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.

2 participants