This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re-run of loop pass
- To: egcs at cygnus dot com
- Subject: Re-run of loop pass
- From: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Date: Sun, 18 Oct 1998 13:21:23 +1300 (NZDT)
- Cc: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
What's the philosophy of rerunning the loop optimisation pass twice?
I've noticed that this can generate poorer code when unrolling loops
or using the bct optimisation if a BIV is eliminated on the first
pass.
On the second pass, loop_iterations is often unable to determine the
iteration count for loops with limits that should be able to be
determined at compile time. Loop unrolling or the bct optimisation
then makes a dog's breakfast of things.
Michael.