* What loop optimizations could increase the code size significantly?
@ 2010-12-10 19:41 Fang, Changpeng
2010-12-10 20:28 ` Gan
0 siblings, 1 reply; 2+ messages in thread
From: Fang, Changpeng @ 2010-12-10 19:41 UTC (permalink / raw)
To: gcc, gcc-help; +Cc: Fang, Changpeng
Hi,
I am kooking ways to reduce the code size. What loop optimizations could increase the code size significantly?
The optimization I know are: unswitch, vectorization, prefetch and unrolling.
We should not perform these optimizations if the loop just roll a few iterations.
In addition, what loop optimizations could generate pre- and/or post loops?
For example, vectorization, unrolling,
Thanks,
Changpeng
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What loop optimizations could increase the code size significantly?
2010-12-10 19:41 What loop optimizations could increase the code size significantly? Fang, Changpeng
@ 2010-12-10 20:28 ` Gan
0 siblings, 0 replies; 2+ messages in thread
From: Gan @ 2010-12-10 20:28 UTC (permalink / raw)
To: Fang, Changpeng; +Cc: gcc, gcc-help
Software pipeline (a.k.a, sms) generates prologue and epilogue code.
In addition, loop versioning duplicates loop body, which would also
increase code size. But I guess you don't want to turn on SWP, right?
Gan
On Fri, Dec 10, 2010 at 1:40 PM, Fang, Changpeng <Changpeng.Fang@amd.com> wrote:
> Hi,
>
> I am kooking ways to reduce the code size. What loop optimizations could increase the code size significantly?
> The optimization I know are: unswitch, vectorization, prefetch and unrolling.
> We should not perform these optimizations if the loop just roll a few iterations.
>
> In addition, what loop optimizations could generate pre- and/or post loops?
> For example, vectorization, unrolling,
>
> Thanks,
>
> Changpeng
>
--
Best Regards
Gan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-10 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 19:41 What loop optimizations could increase the code size significantly? Fang, Changpeng
2010-12-10 20:28 ` Gan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).