[LLVMdev] -stats prints nothing, though something is expected
Philip Reames
listmail at philipreames.com
Wed Feb 18 14:11:29 PST 2015
You are mostly likely using a Release build. -stats only does anything
with Assertions enabled.
On 02/18/2015 08:58 AM, Rob Stewart wrote:
> 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 something very obviously wrong. What is it?
>
> --
> Rob
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150218/b8917cb5/attachment.html>
More information about the llvm-dev
mailing list