Repository navigation
Do not hoist constants if they will not be CSEed - #64039
Closed
SingleAccretion wants to merge 1 commit into
Closed
SingleAccretion wants to merge 1 commit into
SingleAccretion wants to merge 1 commit into
Conversation
|
Tagging subscribers to this area: @JulieLeeMSFT Issue DetailsWe can sometimes see cases where hoisting decides to hoist a constant on platforms where CSEing for them is disabled, leading to wasted work. Fix this by folding the relevant checks into Diffs are RA noise (the pre-header blocks are no longer being created) plus unblocked new hoists of actually profitable trees.
|
SingleAccretion
force-pushed
the
Do-Not-Hoist-Constants-Unnecessarily
branch
2 times, most recently
from
January 28, 2022 15:42
ae1c0ce to
1081488
Compare
SingleAccretion
force-pushed
the
Do-Not-Hoist-Constants-Unnecessarily
branch
2 times, most recently
from
February 12, 2022 11:15
60bb484 to
a02170c
Compare
SingleAccretion
force-pushed
the
Do-Not-Hoist-Constants-Unnecessarily
branch
2 times, most recently
from
February 25, 2022 20:54
679e1e5 to
c434300
Compare
We can sometimes see cases where hoisting decides to hoist a constant on platforms where CSEing for them is disabled, leading to wasted work. Fix this by folding the relevant checks into "optIsCSEcandidate" that the hoisting code uses. Diffs are RA noise (the pre-header blocks are no longer being created) plus unblocked new hoists of actually profitable trees.
SingleAccretion
force-pushed
the
Do-Not-Hoist-Constants-Unnecessarily
branch
from
March 7, 2022 21:53
c434300 to
eaadd63
Compare
Contributor
Author
|
Due to the regressions, I do not plan to pursue this further. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We can sometimes see cases where hoisting decides to hoist a constant on platforms where CSEing for them is disabled, leading to wasted work.
Fix this by folding the relevant checks into
optIsCSEcandidatethat the hoisting code uses.Diffs are mixed... it seems we sometimes get better allocation and better flow with the pre-header, even if we don't get anything out of the hoist itself.