-
-
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.
<<, >>, >>>: use intrinsics for more mixed-type shift operations.
LLVM isn't able to eliminate the additional checks done by fallbacks for the mixed-type bitshift operations, so this change just calls the intrinsics directly, which minimizes the amount of work done. The fallback now avoids conversion checking as well and just returns zero if the second argument is too large to fit in an Int.
- Loading branch information
1 parent
444a058
commit c6882a9
Showing
2 changed files
with
15 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