<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 6/29/11 9:25 AM, Wei Li wrote:
<blockquote
cite="mid:BANLkTinGnxOZrvJSoYRV7asT6NbwjHk=yQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<p><br clear="all">
Dear all:</p>
<p>I got the following statistics for a program:</p>
<p>23 instcount - Number of Add insts<br>
28 instcount - Number of Alloca insts<br>
78 instcount - Number of Br insts<br>
11 instcount - Number of Call insts<br>
1 instcount - Number of FAdd insts<br>
3 instcount - Number of FDiv insts<br>
3 instcount - Number of FMul insts<br>
1 instcount - Number of FSub insts<br>
21 instcount - Number of GetElementPtr insts<br>
22 instcount - Number of ICmp insts<br>
103 instcount - Number of Load insts<br>
4 instcount - Number of PHI insts<br>
5 instcount - Number of Ret insts<br>
3 instcount - Number of SIToFP insts<br>
53 instcount - Number of Store insts<br>
83 instcount - Number of basic blocks<br>
359 instcount - Number of instructions (of all types)<br>
216 instcount - Number of memory instructions<br>
5 instcount - Number of non-external functions</p>
<p><br>
Does "IComp" mean Integer Compare? What are SIToFP and Ret
insts? </p>
</blockquote>
<br>
I believe that sitofp is the number of Signed Integer to Floating
Point cast instructions, and ret is the number of return (ret)
instructions.<br>
<br>
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.<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:BANLkTinGnxOZrvJSoYRV7asT6NbwjHk=yQ@mail.gmail.com"
type="cite">
<p>-- <br>
Regards,<br>
<br>
Wei Li<br>
</p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>