-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize callers when DAE removes uninhabitable results
In principle the optimizer should be using the fact that calls (or any other expressions) that produce uninhabitable types will never return. Previously, when DAE removed unused, uninhabitable results, the caller would lose this useful information and have no way of determining that the call would never return. Fix this by inserting an `unreachable` after the call in the caller. Also run follow-up optimizations on the caller because the new `unreachable` is very likely to lead to improvements.
- Loading branch information
Showing
2 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters