[llvm] r231485 - Avoid calls to dumpPassInfo and RegionBase<Tr>::getNameStr() in RGPassManager if

Tobias Grosser tobias at grosser.es
Fri Mar 6 08:53:45 PST 2015


On 06.03.2015 17:15, Chad Rosier wrote:
> Author: mcrosier
> Date: Fri Mar  6 10:15:04 2015
> New Revision: 231485
>
> URL: http://llvm.org/viewvc/llvm-project?rev=231485&view=rev
> Log:
> Avoid calls to dumpPassInfo and RegionBase<Tr>::getNameStr() in RGPassManager if
> -debug-pass is not specified, as the string is only used when dumping pass
> information.  There is a big cost of determining the name in
> ReginBase<Tr>:getNameStr() if the region's entry or exit block doesn't have a
> name.  This is the case for the Release build, as names are not preserved by the
> front-end.
>
> RegionPass is mainly used by Polly, resulting in long compile time for one file
> of a customer application with the Release build (1m24s) vs Release+Asserts
> build (10s) when Polly is used.  With this change, the compile time with the
> Release build went down to 8s.

Thank you Chad!

Tobias



More information about the llvm-commits mailing list