This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/41881] Complete unrolling (inner) versus vectorization of reduction
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2009 22:50:25 -0000
- Subject: [Bug tree-optimization/41881] Complete unrolling (inner) versus vectorization of reduction
- References: <bug-41881-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-10-30 22:50 -------
But:
static unsigned int
tree_complete_unroll_inner (void)
{
unsigned ret = 0;
loop_optimizer_init (LOOPS_NORMAL
| LOOPS_HAVE_RECORDED_EXITS);
if (number_of_loops () > 1)
{
scev_initialize ();
ret = tree_unroll_loops_completely (optimize >= 3, false);
so it will not allow the body to increase in code-size when not
compiling with -O3. Unrolling the loop in your example does
increase code size.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41881