Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For complex ?:-operators, clang generates if-else blocks, e.g. if clang cannot determine that neither side has side-effects. By moving some calculations out of the ?:-operator, we allow clang to use a select-instruction saving instructions and often also execution cycles for either case. Fixes implementation of sqrt and native_sqrt
- Loading branch information
Showing
3 changed files
with
55 additions
and
18 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
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