-
-
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.
Fix a missing widenconst in SROA (#31336)
We can now infer Expr(:new) as returning a `PartialStruct` if one of the arguments is constant. However, SROA was missing a corresponding widenconst and thus refusing to process such Expr(:new). This didn't show up very much in julia code, because inlining generally dropped the PartialStruct annotation on the Expr(:new), but it does show up with more aggressive inlining schemes that I'm playing with. Fix it and add a test.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
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