This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What loop optimizations could increase the code size significantly?
- From: "Fang, Changpeng" <Changpeng dot Fang at amd dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Cc: "Fang, Changpeng" <Changpeng dot Fang at amd dot com>
- Date: Fri, 10 Dec 2010 13:40:43 -0600
- Subject: What loop optimizations could increase the code size significantly?
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