This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49795] vectorization of conditional code happens only on local variables
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jul 2011 12:32:25 +0000
- Subject: [Bug tree-optimization/49795] vectorization of conditional code happens only on local variables
- Auto-submitted: auto-generated
- References: <bug-49795-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49795
--- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-07-20 12:32:21 UTC ---
my actual code looks more like this
void loop() {
for (int i=0; i!=N; ++i) {
d[i]=a[i]+b[i];
if (c[i]<0) d[i] = -d[i];
}
}
where d[i] IS written unconditionally (and does not vectorize either)