-
-
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.
Improve _apply(apply_type, ::Tuple, ::SimpleVector)
This is another one of those patterns that doesn't generally come up except in Cassette/Zygote code. There's two related changes here: 1. Expand ininling's _apply rewrite to also handle constant svecs (under the restriction that they must be no longer than the splatting cutoff and the elements must be individually eligible for inlining into the IR) 2. Move the _apply rewrite before the special case inliner for builtins such that _apply(apply_type, ...) gets eliminated early.
- Loading branch information
Showing
2 changed files
with
54 additions
and
26 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