[cfe-dev] Need some feed back

John Criswell criswell at illinois.edu
Wed Jun 29 07:49:55 PDT 2011


On 6/29/11 9:25 AM, Wei Li wrote:
>
>
> Dear all:
>
> I got the following statistics for a program:
>
> 23 instcount - Number of Add insts
>  28 instcount - Number of Alloca insts
>  78 instcount - Number of Br insts
>  11 instcount - Number of Call insts
>   1 instcount - Number of FAdd insts
>   3 instcount - Number of FDiv insts
>   3 instcount - Number of FMul insts
>   1 instcount - Number of FSub insts
>  21 instcount - Number of GetElementPtr insts
>  22 instcount - Number of ICmp insts
> 103 instcount - Number of Load insts
>   4 instcount - Number of PHI insts
>   5 instcount - Number of Ret insts
>   3 instcount - Number of SIToFP insts
>  53 instcount - Number of Store insts
>  83 instcount - Number of basic blocks
> 359 instcount - Number of instructions (of all types)
> 216 instcount - Number of memory instructions
>   5 instcount - Number of non-external functions
>
>
> Does "IComp" mean Integer Compare? What are SIToFP and Ret insts?
>

I believe that sitofp is the number of Signed Integer to Floating Point 
cast instructions, and ret is the number of return (ret) instructions.

Just as an FYI, I believe this is the output of the -instcount pass, 
which is counting the number of instructions at the LLVM IR level.

-- John T.

> -- 
> Regards,
>
> Wei Li
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110629/e8ba3b7d/attachment.html>


More information about the cfe-dev mailing list