No statistic output with opt


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

Hi Julien,

in my experience, llvm has to be built with assertions enabled for -stats to work.