Bug 18607 - Vectorizer: data_reference is overwritten in vect_analyze_data_refs
Summary: Vectorizer: data_reference is overwritten in vect_analyze_data_refs
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Ira Rosen
URL:
Keywords: missed-optimization, patch, wrong-code
Depends on:
Blocks:
 
Reported: 2004-11-22 09:50 UTC by Ira Rosen
Modified: 2004-11-30 15:40 UTC (History)
2 users (show)

See Also:
Host: powerpc-apple-darwin7.0.0
Target: powerpc-apple-darwin7.0.0
Build: powerpc-apple-darwin7.0.0
Known to work:
Known to fail:
Last reconfirmed: 2004-11-22 13:53:49


Attachments
Testcase (357 bytes, text/plain)
2004-11-22 10:01 UTC, Ira Rosen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ira Rosen 2004-11-22 09:50:28 UTC
While looking for memory tag in vect_analyze_data_refs, data_reference is 
overwritten by temporary.
Comment 1 Ira Rosen 2004-11-22 10:01:17 UTC
Created attachment 7580 [details]
Testcase
Comment 2 Andrew Pinski 2004-11-22 13:53:49 UTC
Confirmed.
Comment 3 Ira Rosen 2004-11-23 07:36:27 UTC
Fixed in http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01747.html
Comment 4 GCC Commits 2004-11-30 14:40:44 UTC
Subject: Bug 18607

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dorit@gcc.gnu.org	2004-11-30 14:40:38

Modified files:
	gcc            : ChangeLog tree-vectorizer.c 
Added files:
	gcc/testsuite/gcc.dg/vect: vect-89.c 

Log message:
	2004-11-30  Ira Rosen  <irar@il.ibm.com>
	
	PR tree-opt/18607
	* tree-vectorizer.c (vect_analyze_data_refs): Use temporary
	variable for data_reference when looking for memtag.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6646&r2=2.6647
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vectorizer.c.diff?cvsroot=gcc&r1=2.44&r2=2.45
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/vect/vect-89.c.diff?cvsroot=gcc&r1=NONE&r2=1.1

Comment 5 GCC Commits 2004-11-30 14:54:49 UTC
Subject: Bug 18607

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dorit@gcc.gnu.org	2004-11-30 14:54:24

Modified files:
	gcc/testsuite  : ChangeLog 

Log message:
	PR tree-opt/18607
	* gcc.dg/vect/vect-89.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4688&r2=1.4689

Comment 6 Andrew Pinski 2004-11-30 15:40:17 UTC
Fixed.