Martin J. O'Riordan via llvm-dev
2017-Apr-14 11:39 UTC
[llvm-dev] Options for timing passes in LLVM?
Hi LLVM-Dev, Are there any options that can be used to report the time each LLVM pass takes to execute? I am examining a program that now takes about 6 times longer to compiler since we moved to the v4.0 sources from the v3.9 sources (~54s to ~320s), and so far my investigation does not seem to point to our additional target specific passes, so I would like to see where the time is being spent. If there are existing options already present for this kind of thing, that would be very helpful. Thanks, MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170414/d95d565b/attachment.html>
Refer to `llc` document [1], it would be `--time-passes`. [1] http://llvm.org/docs/CommandGuide/llc.html HTH, chenwj 2017-04-14 19:39 GMT+08:00 Martin J. O'Riordan via llvm-dev < llvm-dev at lists.llvm.org>:> Hi LLVM-Dev, > > > > Are there any options that can be used to report the time each LLVM pass > takes to execute? I am examining a program that now takes about 6 times > longer to compiler since we moved to the v4.0 sources from the v3.9 sources > (~54s to ~320s), and so far my investigation does not seem to point to our > additional target specific passes, so I would like to see where the time is > being spent. If there are existing options already present for this kind > of thing, that would be very helpful. > > > > Thanks, > > > > MartinO > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-- -- Wei-Ren Chen (陳韋任) Homepage: https://people.cs.nctu.edu.tw/~chenwj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170414/d5de6f0e/attachment.html>
Martin J. O'Riordan via llvm-dev
2017-Apr-14 12:08 UTC
[llvm-dev] Options for timing passes in LLVM?
Thanks :) From: 陳韋任 [mailto:chenwj.cs97g at g2.nctu.edu.tw] Sent: 14 April 2017 12:53 To: Martin J. O'Riordan <martin.oriordan at movidius.com> Cc: LLVM Developers <llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Options for timing passes in LLVM? Refer to `llc` document [1], it would be `--time-passes`. [1] http://llvm.org/docs/CommandGuide/llc.html HTH, chenwj 2017-04-14 19:39 GMT+08:00 Martin J. O'Riordan via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> >: Hi LLVM-Dev, Are there any options that can be used to report the time each LLVM pass takes to execute? I am examining a program that now takes about 6 times longer to compiler since we moved to the v4.0 sources from the v3.9 sources (~54s to ~320s), and so far my investigation does not seem to point to our additional target specific passes, so I would like to see where the time is being spent. If there are existing options already present for this kind of thing, that would be very helpful. Thanks, MartinO _______________________________________________ LLVM Developers mailing list llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -- -- Wei-Ren Chen (陳韋任) Homepage: https://people.cs.nctu.edu.tw/~chenwj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170414/e50531ac/attachment.html>