-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct effect_free predicate in inlining
As part of the new optimizer work, I wrote a more accurate effect_free predicate (stmt_effect_free). However, the old optimizer's less accurate predicate stuck around and snuck into two places 1) The inliner 2) The optimize.jl code that computes proven_pure As a result, the compiler would eliminate certain statements, even if it could not prove that they were effect_free. Fix all that by getting rid of the old predicate and using the new one everywhere. Fixes #27910
- Loading branch information
Showing
4 changed files
with
18 additions
and
118 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
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