This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve const return block placement
Tweak a few things so that generated constant return blocks get laid out more optimally: - Don't set BBF_DONT_REMOVE on them; it's ok to move them around, and if all references to them get dropped, it's fine to eliminate them. - Insert them immediately after their lexically-last predecessor when generating them; this increases the likelihood of using fallthrough rather than gotos to target them in the face of fgReorderBlocks' reticence to reorder code that we don't have IBC data for and that hasn't been marked rare. - Make fgReorderBlocks slightly more aggressive for a pattern that now shows up somewhat routinely for returning compound conditionals from predicate functions.
- Loading branch information
1 parent
eb2e9f9
commit 20ac1a9
Showing
2 changed files
with
158 additions
and
4 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