]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/10087 (optimizer produces wrong code when indexing 2D array)
authorGlen Nakamura <glen@imodulo.com>
Thu, 27 Mar 2003 18:53:36 +0000 (18:53 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 27 Mar 2003 18:53:36 +0000 (18:53 +0000)
commitc7d325c803cc4d985809b1b85572e0cd2c1cb5a1
tree796445c9df0e9caa4b8e1dce2480c314d1c297fc
parentf18ab43711810de62db708d3c643664344c96aef
re PR rtl-optimization/10087 (optimizer produces wrong code when indexing 2D array)

PR opt/10087
* gcc.dg/20030324-1.c: New test.

PR opt/10087
* loop.c (loop_givs_reduce): Skip bivs with duplicate locations
while incrementing giv.
(record_biv): Check for duplicate biv locations and
set (struct induction *) v->same if found.

From-SVN: r64928
gcc/ChangeLog
gcc/loop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20030324-1.c [new file with mode: 0644]