<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 7/4/12 10:25 AM, Rafael Parizi
wrote:<br>
</div>
<blockquote
cite="mid:CALhe0+GAB43tnwP2_Bf1YCKUP93AXGXzzQbkQ8xCk4+xVJ3T6w@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>How do I know how much a transform modified a program?</div>
<div>For example, if I have a program that has 4 loops and another
with 1 loop, and if I apply the loop-rotate pass, is sure that
the first program will be more modified which the second
program. Am I right?</div>
<div><br>
</div>
<div>If yes, how do I to calculate this transformation?</div>
</blockquote>
<br>
Many of the LLVM transforms keep statistics on what they do (e.g.,
how many instructions they remove, how many loops they've changed,
etc.).<br>
<br>
Passing the -Xclang -print-stats options to clang/clang++ should get
it to print out the statistics. You might find a statistic that
gives you the information you want.<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:CALhe0+GAB43tnwP2_Bf1YCKUP93AXGXzzQbkQ8xCk4+xVJ3T6w@mail.gmail.com"
type="cite">
<div><br>
</div>
-- <br>
<font><b><i>Rafael Parizi</i></b></font><br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>