This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR45611
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Sep 2010 12:41:39 +0200 (CEST)
- Subject: [PATCH] Fix PR45611
I made a typo with the last IVOPTs patch concerning alignment, which
is in bytes, not bits. Uh.
Bootstrapped and tested on x86_64-unknown-linux-gnu, visually
inspected SPARC assembly from the testcase, committed.
Richard.
2010-09-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45611
* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
(copy_ref_info): Likewise.
Index: gcc/tree-ssa-loop-ivopts.c
===================================================================
*** gcc/tree-ssa-loop-ivopts.c (revision 164242)
--- gcc/tree-ssa-loop-ivopts.c (working copy)
*************** rewrite_use_nonlinear_expr (struct ivopt
*** 5869,5875 ****
information. */
if (SSA_NAME_PTR_INFO (comp))
{
! SSA_NAME_PTR_INFO (comp)->align = BITS_PER_UNIT;
SSA_NAME_PTR_INFO (comp)->misalign = 0;
}
}
--- 5869,5875 ----
information. */
if (SSA_NAME_PTR_INFO (comp))
{
! SSA_NAME_PTR_INFO (comp)->align = 1;
SSA_NAME_PTR_INFO (comp)->misalign = 0;
}
}
*************** copy_ref_info (tree new_ref, tree old_re
*** 5934,5940 ****
}
else
{
! new_pi->align = BITS_PER_UNIT;
new_pi->misalign = 0;
}
}
--- 5934,5940 ----
}
else
{
! new_pi->align = 1;
new_pi->misalign = 0;
}
}