Skip to content

Improve RoundTrip pass: avoid copying#2531

Merged
kripken merged 1 commit intomasterfrom
rt2
Dec 16, 2019
Merged

Improve RoundTrip pass: avoid copying#2531
kripken merged 1 commit intomasterfrom
rt2

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Dec 16, 2019

No description provided.

@kripken kripken requested a review from tlively December 16, 2019 18:20
Comment thread src/passes/RoundTrip.cpp
std::remove(tempName.c_str());
// Swap in
ModuleUtils::clearModule(*module);
ModuleUtils::copyModule(newModule, *module);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we get rid of ModuleUtils::copyModule entirely? IIRC, it isn't used anywhere else.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hmm, maybe it'll be useful in the future? Seems a shame to remove it (but unfortunate it isn't tested).

@kripken kripken merged commit c1526e7 into master Dec 16, 2019
@kripken kripken deleted the rt2 branch December 16, 2019 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants