-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[nnc] Separate printing of optimized llvm bitcode from assembly #56117
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
Conversation
I was debugging an issue during instruction selection and wanted to see the input bitcode. This way we always print it before going into the asm generation pass. Differential Revision: [D27781683](https://our.internmc.facebook.com/intern/diff/D27781683/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 0f47622 (more details on the Dr. CI page):
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| asmBuffer.set_size(0); | ||
| module_->print(asmStream, nullptr); | ||
| llvmCode = asmStream.str().str(); | ||
| GRAPH_DEBUG( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make one of them GRAPH_UPDATE to reduce amount of info dumped at once?
…embly" I was debugging an issue during instruction selection and wanted to see the input bitcode. This way we always print it before going into the asm generation pass. Differential Revision: [D27781683](https://our.internmc.facebook.com/intern/diff/D27781683/) [ghstack-poisoned]
Codecov Report
@@ Coverage Diff @@
## gh/bertmaher/104/base #56117 +/- ##
=========================================================
- Coverage 77.07% 77.07% -0.01%
=========================================================
Files 1913 1913
Lines 189643 189644 +1
=========================================================
- Hits 146174 146168 -6
- Misses 43469 43476 +7 |
|
This pull request has been merged in d56f451. |
…rch#56117) Summary: Pull Request resolved: pytorch#56117 I was debugging an issue during instruction selection and wanted to see the input bitcode. This way we always print it before going into the asm generation pass. ghstack-source-id: 126592596 Test Plan: Run with `PYTORCH_JIT_LOG_LEVEL=">>llvm_codegen"` Reviewed By: huiguoo Differential Revision: D27781683 fbshipit-source-id: 84635d0ca2a1318ae7a9a73cc1d2df450d8b6a08
Stack from ghstack:
I was debugging an issue during instruction selection and wanted to
see the input bitcode. This way we always print it before going into the asm
generation pass.
Differential Revision: D27781683