------- Comment #4 from dorit at gcc dot gnu dot org 2007-10-22 04:37 ------- I'm testing a patch that would fix both this PR and PR33834 (posted it under the PR33834 entry). By the way, this testcase does not get vectorized with current mainline (an Oct21 snapshot) because the call to cos is not taken out of the inner-loop, although it's invariant; it was taken out of the loop with an older snapshot (Sept10). Another data point - in the testcase in PR33834 the call to cos is taken out of the inner-loop with current snapshot.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33835