Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve evaluation of nested
ComposedFunction
s (JuliaLang#45925)
* ~~Add (the equivalent of) `@assume_effects :terminates_globally` to `unwrap_composed`. Although it could be inferred as `Const`, without the annotation, it was not elided for too complex inputs, resulting in unnecessary runtime overhead.~~ EDIT: now JuliaLang#45993 is merged and this part isn't included. * Reverse recursion order in `call_composed`. This prevents potentially changing argument types being piped through the recursion, making inference bail out. With the reversed order, only the tuple of remaining functions is changing during recursion and is becoming strictly simpler, letting inference succeed. Co-authored-by: Shuhei Kadowaki <aviatesk@gmail.com>
- Loading branch information