-
-
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.
compile simple loop conditions twice for a more efficient branch stru…
…cture I didn't think this would matter, but it actually makes a big difference to LLVM. fixes #5469 with this, I believe no changes to Range1 are needed for performance.
- Loading branch information
1 parent
9e0e3bd
commit 14d0a7d
Showing
1 changed file
with
22 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
14d0a7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome :-)
Nevertheless, I think we should change Range1 to avoid lousy interaction with type promotion. For example, character ranges and date ranges are much better if you can just repeatedly increment a value until it exceeds some other value.