Adam Nemet via llvm-dev
2017-May-02 05:48 UTC
[llvm-dev] New optimization view in Compiler Explorer aka godbolt.org
Hi, I’d like to share that Jared Wyles extended the popular Compiler Explorer at godbolt.org <http://godbolt.org/> to use optimization remarks from LLVM. If you add -fsave-optimization-record to the compiler flags after selecting a recent clang, the speedometer button becomes active[1]. Clicking this, a new editor window pops up[2] similar to the source view in opt-viewer[3][4]. Here, if you hover over the marked lines you’ll see the various optimization remarks. Jared is still planning various improvements like improving discoverability such that you wouldn’t have to manually add the command line option, C++ demangling and better strategies if you have multiple remarks on the same line. If you have other ideas or issues, you can file them at https://github.com/mattgodbolt/compiler-explorer <https://github.com/mattgodbolt/compiler-explorer>. And of course on the LLVM side, please keep adding remarks to your favorite optimizations. Contributions are also welcome to the opt-viewer. Thanks, Adam [1] https://godbolt.org/g/4ZHujW <https://godbolt.org/g/4ZHujW> [2] https://godbolt.org/g/3AByhY <https://godbolt.org/g/3AByhY> [3] http://llvm.org/devmtg/2016-11/#talk15 <http://llvm.org/devmtg/2016-11/#talk15> [4] https://github.com/androm3da/optviewer-demo <https://github.com/androm3da/optviewer-demo> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170501/8fc417d1/attachment.html>