This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC extension proposal (loop unswitching)


Nils Pipenbrinck <n.pipenbrinck@cubic.org> writes:

> Most of the stuff I write is performance critical, and I always find
> myself in the same situation: I spend counter less hours to unswitch
> loops by hand because the built-in loop unswitcher is not always smart
> when multiple variables can be unswitched. 

I'm sure the developers would appreciate simple test cases in bugzilla
demonstrating the problem. That would not help you immediately 
(because it would only be fixed in some future gcc version), but long term.

> Also you can not
> enable/disable loop unswitching on a per-function basis.

I often wished for a way to enable/disable loop unrolling on a per 
loop basis. Some way to annotate loops similar to what OpenMP
does would be quite nice.

-Andi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]