<div dir="ltr"><div><div><div>Hi Julien,<br><br></div>in my experience, llvm has to be built with assertions enabled for -stats to work.<br><br></div>Regards,<br></div>Victor.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-27 10:56 GMT-07:00 Julien Klaus via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I´m new with the LLVM-Project and I want to understand the optimizer. When I run the opt command with -stats and a bitcode file, I get no output. For example<br>
<br>
    opt -stats -adce test.bc<br>
<br>
returns nothing.<br>
I have clang and llvm version 3.4 installed. The option -time-passes works as expected.<br>
The file test.c, which I have converted to test.bc with clang, contains only a simple function.<br>
<br>
Is there something wrong in my approach?<br>
<br>
Best regards<br>
Julien Klaus<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>