Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate branchless code when "if" can be evaluated at compile time
We already avoid the conditional branch, but still have an unconditional branch in the generated code. Remove it.
- Loading branch information
Showing
1 changed file
with
14 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
7078ab7
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.
saw approval from huonw
at dotdash@7078ab7
7078ab7
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.
merging dotdash/rust/const_if_else = 7078ab7 into auto
7078ab7
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.
dotdash/rust/const_if_else = 7078ab7 merged ok, testing candidate = 544ef6c
7078ab7
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.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/577
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/580
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt/builds/582
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt-vg/builds/575
success: http://buildbot.rust-lang.org/builders/auto-mac-all-opt/builds/578
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/596
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt/builds/599
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/596
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt/builds/600
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt-vg/builds/605
success: http://buildbot.rust-lang.org/builders/auto-linux-all-opt/builds/598
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/580
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt/builds/595
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/369
7078ab7
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.
fast-forwarding master to auto = 544ef6c