Skip to content

Conversation

@eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Nov 25, 2025

This peephole optimization didn't consider that an alloc_stack of an enum can be overridden by another value. The fix is to remove this peephole optimization at all because it is already covered by optimizeEnum in alloc_stack simplification.

Fixes a miscompile
#85689
rdar://165374568

This peephole optimization didn't consider that an alloc_stack of an enum can be overridden by another value.
The fix is to remove this peephole optimization at all because it is already covered by `optimizeEnum` in alloc_stack simplification.

Fixes a miscompile
swiftlang#85687
rdar://165374568
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein
Copy link
Contributor Author

@swift-ci apple silicon benchmark

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

@jamieQ
Copy link
Contributor

jamieQ commented Nov 25, 2025

i assume this is intended to fix #85689, and not the issue currently in the description/commit message?

@eeckstein
Copy link
Contributor Author

i assume this is intended to fix #85689, and not the issue currently in the description/commit message?

Yes, thanks!

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test windows

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test windows

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