-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Speedup page loading of VizStmt. #7755
Conversation
Disabled line numbers in the syntax highlihgting of the assembly. Made syntax highlighting on-demand with a button.
Follow up to #7754 by @antonysigma. |
I wonder @maaz139, what's the use of the visualization of the IR. I don't look at it really. The only reason I HAVE to look at it is to click the "Jump to Assembly" buttons in the VizIR tree. |
Likewise. If only we can have jump buttons between the IR view and the assembly view, like the Compiler Explorer project. I am preoccupied with #7519 and the draft PR right now, but I will join the discussion later this month. |
Compatibility problem. Firefox does not support "computedStyleMap". F*$king webtech... |
Fixed it. |
I used the patch in this PR yesterday for a day, and I think that, given that the syntax highlighting became fast again (due to removing line numbers), I don't think having an extra click to run the highlighter on demand is useful. I'll change this to be highlighted by default again. |
I tested it today. Yes, the assembly code tab indeed is more responsive than before. Attaching the demo here. |
@steven-johnson Is there a reason for waiting? I believe these changes are outside of the scope of the discussion about where to go with this VizIR thing. I have more improvements coming for this. |
Sorry, didn't realize this was ready to land. Landing now. |
I think Darya's idea was to offer a simplified view into the program that reveals high-level control/data flow. To what extent it achieves that goal, I think only user feedback like yours can tell us. Happy to hear about how you use the HTML IR file and if there are things you look for that we could summarize in the visualization. |
I'm always dragging it out of the way, and using it to Jump to the Assembly. I really haven't found any use for it. I hate to say it, but to me its useless and rather annoying. The code-like stmt HTML is what I am always looking at. I'm currently working on a PR which cleans this up, and will allow you to generate "stmt + assembly", and "stmt + vizir + assembly" versions. Both will feature direct jump-to-assembly buttons right from the stmt. The I was looking into generating more jump buttons, as after optimization passes sometimes the basic block labels that are generated during LLVM CodeGen are removed from the assembly output. I was trying to work out how to add proper debug information with source locations, but I can't seem to figure out this LLVM DIBuilder stuff and how to get it in the actual outputted As I am not optimistic about figuring out how to get the debug info working, I will probably leave that for a later attempt, and make a PR that only does the first bit. Since I added the new jump-buttons (the blue ones in the Stmt code), I like to work like this: |
Opened PR #7793. |
* Speedup page loading of VizStmt. Disabled line numbers in the syntax highlihgting of the assembly. Made syntax highlighting on-demand with a button. * Fix computedStyleMap() not available in Firefox. * Reanble assembly highlighting by default.
Made syntax highlighting on-demand with a button.toggleViz
to directly take the element instead of running a selector query. This was a big speedup.:hover
. This significantly lowers the amount of "listeners" in the document. (Inspired by @antonysigma as well for this).Tagging @maaz139 @antonysigma @steven-johnson.