This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/19922] xor is enclosed in loop, and exectuted on each iteration of for statement


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]