Skip to content

ARCCodeMotion: add debug tracing. #25901

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

Merged
merged 1 commit into from
Jul 2, 2019
Merged

ARCCodeMotion: add debug tracing. #25901

merged 1 commit into from
Jul 2, 2019

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 1, 2019

No description provided.

@atrick
Copy link
Contributor Author

atrick commented Jul 1, 2019

@swift-ci test.

@@ -180,6 +180,10 @@ class CodeMotionContext {
/// we compute the genset and killset.
llvm::SmallPtrSet<SILBasicBlock *, 8> InterestBlocks;

#ifndef NDEBUG
Optional<SILPrintContext> printCtx;
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the purpose of printCtx? To set the SortedSIL flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a comment:

+  // SILPrintContext is used to print block IDs in RPO order.
+  // It is optional so only the final insertion point interference is printed.
   Optional<SILPrintContext> printCtx;

It looks like I copied this from RLE's debug output.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, makes sense. Thanks

@atrick
Copy link
Contributor Author

atrick commented Jul 1, 2019

@swift-ci smoke test.

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm

@atrick atrick merged commit b6e072b into swiftlang:master Jul 2, 2019
@atrick atrick deleted the debug-arc branch July 30, 2019 23:47
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