Displaying 1 result from an estimated 1 matches for "b8917cb5".
2015 Feb 18
2
[LLVMdev] -stats prints nothing, though something is expected
Given the program:
int sum(int i,int j)
{ return i+j; }
int main()
{ sum(3,2); }
$ clang -S -emit-llvm foo.c
Now I'd like to print all statistics. Unfortunately, the following prints
nothing:
$ opt -S -O3 -stats < foo.ll > /dev/null
However, running the following prints an IR that is different to the
contents of foo.ll:
$ opt -S -O3 foo.ll
I'm using LLVM 3.5. I'm doing