Godbolt viewer

65 views
Skip to first unread message

Sudakshina Dutta

unread,
Jul 31, 2022, 7:28:15 AM7/31/22
to Compiler Explorer Discussion
Dear all,

Greetings from India. Please go to the link https://godbolt.org/z/z375aK4KK where the LLVM Opt pipeline viewer is shown. I am unable to find the output shown in the windows. Some passes are listed in a window against which two vertical windows are displayed. As the passes change, the outputs of the windows change.  Can you kindly help me in understanding the output shown in the marked windows of the attached file ?

Thanks,
Sudakshina
godbolt.png

Matt Godbolt

unread,
Jul 31, 2022, 11:34:53 AM7/31/22
to compiler-explo...@googlegroups.com
Hi Sudakshina!

Thanks for the email!  I'm not an expert in how the LLVM opt system works, but: As I understand it:

  • You pick the single function whose opt output you want to look at in the top Function: drop down
  • You can look at the individual passes whose output affected the LLVM internal representation on the left of the three panes in the pipeline viewer, for example you might select "TailCallElemPass". Passes that made no changes are not shown.
  • The two other panes show a difference view: the lefthand is the "what was the code before this optimization pass was applied", and the right-hand "what was the code after". Red lines show deletions/modifications and green lines are added/modified (these are the two areas you highlighted on your screenshot).
In the screenshot you attached it's hard to see the additions/removals in the two areas you ticks as the window size is a little small; but here's an example of seeing the "TailCallElemPass" on cross4(double) [ https://godbolt.org/z/qrxdooYGc - I moved some windows around a bit ]
Screenshot from 2022-07-31 10-34-18.png

Hope that helps!

--matt



**************************************************************************
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
************************************************************************************************

--
You received this message because you are subscribed to the Google Groups "Compiler Explorer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compiler-explorer-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/compiler-explorer-discussion/8935ca18-7240-4dc8-954c-e87686d3c06an%40googlegroups.com.


--
Matt
(he/him)

Sudakshina Dutta

unread,
Aug 2, 2022, 8:12:23 AM8/2/22
to compiler-explo...@googlegroups.com
Thank you Matt. It answered my question.

You received this message because you are subscribed to a topic in the Google Groups "Compiler Explorer Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/compiler-explorer-discussion/Sqpp5JOzYgE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to compiler-explorer-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/compiler-explorer-discussion/CAFWXXN3UKdgbZ%3D1D1EB67JnoRjbByJTVUccPZA1X5LvSHu33ow%40mail.gmail.com.

Matt Godbolt

unread,
Aug 2, 2022, 8:31:02 AM8/2/22
to compiler-explo...@googlegroups.com
Awesome! Glad to hear it :)

--matt



--
Matt
(he/him)
Reply all
Reply to author
Forward
0 new messages