<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear Tobias,<div><br><div>Thank you very much for your very helpful advice. </div><div><span style="white-space: pre-wrap; line-height: 1.7;"><br></span></div><div><span style="white-space: pre-wrap; line-height: 1.7;">Yes, -debug-pass and </span><span style="line-height: 1.7; white-space: pre-wrap;">-time-passes are two very useful and powerful options when evaluating the compile-time of each compiler pass. They are exactly what I need! With these options, I can step into details of the compile-time overhead of each pass. </span><span style="line-height: 1.7; white-space: pre-wrap;">I have finished some preliminary testing based on two randomly selected files from PolyBench and MediaBench. Results are listed on </span><a href="https://gist.github.com/tanstar/5508153" target="_blank" style="line-height: 1.7;">https://gist.github.com/tanstar/5508153</a><span style="line-height: 1.7;"> !
;.</span></div><div><br></div><div>Thanks again for your timely advice and help.</div><div><br></div><div>Best regards,</div><div>Star Tan.<pre>At 2013-05-02 17:38:22,"Tobias Grosser" <tobias@grosser.es> wrote:
>On 04/30/2013 04:13 PM, Star Tan wrote:
>> Hi all,
>[...]
>> How could I find out where the time is spent on between two adjacent Polly passes? Can anyone give me some advice?
>
>Hi Star Tan,
>
>I propose to do the performance analysis using the 'opt' tool and
>optimizing LLVM-IR, instead of running it from within clang. For the
>'opt' tool there are two commands that should help you:
>
>1) -debug-pass=Structure or -debug-pass=Details
>
>This should give you the list of passes that is executed. You can
>compare the list to see at which point additional passes are scheduled.
>
>2) -time-passes
>
>This gives you the time spent in the different passes.
>
>These two commands may remove the need for a Polly specific profiling
>infrastructure. Also, if you talk about performance issues you see, it
>would be great if you could attach the .ll file you use as well as the
>exact command line you profile.
>
>Thanks,
>Tobias
>
>
>
</pre></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>