This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Testcase for loop in try_move_mult_to_index?
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Date: Fri, 29 Apr 2005 12:05:10 +0200 (CEST)
- Subject: Testcase for loop in try_move_mult_to_index?
Hi!
I cannot see how fold-const.c:try_move_mult_to_index ever
successfully will do a transformation if the loop
for (;; ref = TREE_OPERAND (ref, 0))
{
if (TREE_CODE (ref) == ARRAY_REF)
{
...
break;
}
if (!handled_component_p (ref))
return NULL_TREE;
}
will not break in the first iteration. What kind of complex
trees are we trying to match here? Zdenek, do you have a
testcase that triggeres this?
Thanks,
Richard.
--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/