Hi Julien,
in my experience, llvm has to be built with assertions enabled for -stats
to work.
Regards,
Victor.
2016-01-27 10:56 GMT-07:00 Julien Klaus via llvm-dev <
llvm-dev at lists.llvm.org>:
> Hello,
>
> 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
>
> opt -stats -adce test.bc
>
> returns nothing.
> I have clang and llvm version 3.4 installed. The option -time-passes works
> as expected.
> The file test.c, which I have converted to test.bc with clang, contains
> only a simple function.
>
> Is there something wrong in my approach?
>
> Best regards
> Julien Klaus
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20160127/a7c9f4f5/attachment.html>