-
-
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.
inference: continue const-prop' when concrete-eval returns non-inline…
…able This commit fixes the regression in the following example: ```julia julia> stritr() = iterate(("1", '2'), 1); julia> @time stritr(); 0.000001 seconds (2 allocations: 64 bytes) # on master 0.000000 seconds # on 1.9 ``` The problem is that currently we don't inline result of concrete-eval when its result is not inlineable, although const-prop' or semi-concrete eval may be able to optimize and inline the method body. To improve the situation, this commit simply allows `abstract_call_method_with_const_args` to continue to semi-concrete eval and const-prop' when concrete-eval returned non-inlineable result.
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 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