Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code from StoreSinking #5365

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

0xdaryl
Copy link
Contributor

@0xdaryl 0xdaryl commented Jul 6, 2020

A previous cleanup of this code left some unreachable remnants behind. Remove them now.

Signed-off-by: Daryl Maier maier@ca.ibm.com

@0xdaryl
Copy link
Contributor Author

0xdaryl commented Jul 6, 2020

@genie-omr build all

@@ -619,19 +613,6 @@ int32_t TR_SinkStores::performStoreSinking()
_placementsForEdgesToBlock = (TR_EdgeStorePlacementList **) trMemory()->allocateStackMemory(arraySize);
memset(_placementsForEdgesToBlock, 0, arraySize);

// some extra meta data is needed if stores with indirect loads are going to be sunk
if (sinkStoresWithIndirectLoads())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewers: this function always returned false, hence the code it guards was removed.

// A single store that is being replicated to a side exit may have 0 or more nodes replaced with anchored nodes for different reasons
// insertAnchoredNodes will take care of all possible node replacements so only a single recursive walk of a store is required
uint32_t
TR_SinkStores::insertAnchoredNodes(TR_MovableStore *store,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewers: this function is unreachable (except via a recursive call). It is removed as well as the data structures that only it used. Most of the other deletions in this PR are derived from this removal.

The previous cleanup deprecated store sinking code in eclipse-omr#3893 left some unreachable
remnants behind.  Remove them now.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
@0xdaryl
Copy link
Contributor Author

0xdaryl commented Sep 17, 2020

@vijaysun-omr : you asked me privately to add a comment to the code mentioning that handling of indirects was removed in a previous PR. I didn't find a convenient place to mention that in the code, so instead I amended the commit message itself to reference PR #3893 that led to these vestigial elements being cleaned up here.

@0xdaryl
Copy link
Contributor Author

0xdaryl commented Oct 1, 2020

Just a reminder ping @vijaysun-omr . No urgency on this though.

@vijaysun-omr
Copy link
Contributor

Thanks, I will merge once tests pass

@vijaysun-omr
Copy link
Contributor

@genie-omr build all

1 similar comment
@vijaysun-omr
Copy link
Contributor

@genie-omr build all

@vijaysun-omr
Copy link
Contributor

@genie-omr build zos

@vijaysun-omr
Copy link
Contributor

This change is not platform dependent as such and the zOS build machine issues have been persisting for a few days now. So I am merging this change (rather than wait for the zOS issues to be resolved).

@vijaysun-omr vijaysun-omr merged commit 774bda0 into eclipse-omr:master Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants