<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’d like to share that Jared Wyles extended the popular Compiler Explorer at <a href="http://godbolt.org" class="">godbolt.org</a> to use optimization remarks from LLVM.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">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 <a href="https://github.com/mattgodbolt/compiler-explorer" class="">https://github.com/mattgodbolt/compiler-explorer</a>.</div><div class=""><br class=""></div><div class="">And of course on the LLVM side, please keep adding remarks to your favorite optimizations.  Contributions are also welcome to the opt-viewer.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Adam</div><div class=""><br class=""></div><div class="">[1] <a href="https://godbolt.org/g/4ZHujW" class="">https://godbolt.org/g/4ZHujW</a></div><div class="">[2] <a href="https://godbolt.org/g/3AByhY" class="">https://godbolt.org/g/3AByhY</a> </div><div class="">[3] <a href="http://llvm.org/devmtg/2016-11/#talk15" class="">http://llvm.org/devmtg/2016-11/#talk15</a></div><div class="">[4] <a href="https://github.com/androm3da/optviewer-demo" class="">https://github.com/androm3da/optviewer-demo</a></div><div class=""><br class=""></div></body></html>