-
-
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 #31392, unaliasing of broadcast arguments against destinations wi…
…th repeated indices When introducing the new broadcasting implementation (which came alongside greater semantic guarantees with regards to aliasing source and destination), I found that we needed a performance optimization for the common case where the destination was `===` to an argument. This is quite common due to the `.op=` syntax and indeed is safe in most cases as the iteration order between the destination and the source is matched. This performance optimization is not safe, however, in the case that the destination has multiple locations that refer to the same memory.
- Loading branch information
1 parent
4a38e79
commit d64f74c
Showing
2 changed files
with
59 additions
and
7 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