This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19922] xor is enclosed in loop, and exectuted on each iteration of for statement
- From: "dorit at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2005 16:35:45 -0000
- Subject: [Bug target/19922] xor is enclosed in loop, and exectuted on each iteration of for statement
- References: <20050212140734.19922.gj@pointblue.com.pl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dorit at il dot ibm dot com 2005-02-12 16:35 -------
We fail to vectorize with:
wagi.cc:43: note: not vectorized: unhandled data ref: D.31081_39 = this_3->wagi
wagi.cc:43: note: bad data references.
The loop in question looks like this:
# i_1 = PHI <i_43(8), 0(7)>;
<L3>:;
D.31081_39 = this_3->wagi;
D.31082_40 = i_1 * 8;
D.31083_41 = (double *) D.31082_40;
D.31084_42 = D.31081_39 + D.31083_41;
*D.31084_42 = 0.0;
i_43 = i_1 + 1;
if (synapsy_2 > i_43) goto <L16>; else goto <L5>;
<L16>:;
goto <bb 3> (<L3>);
If the invariant expr 'D.31081_39 = this_3->wagi;' was taken out of loop, I
think we would have vectorized it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19922