[PATCH] Fix PR59374 for real

2014-01-10 Thread Richard Biener
Dependence analysis in the vectorizer assumes that all references take part in vectorization - which is of course the case for loop-based vectorization. For BB vectorization unrelated DRs can be inbetween vectorized stmts though. The original fix properly verified that when accounting DDRs that

[PATCH] Fix PR59374

2013-12-05 Thread Richard Biener
This fixes PR59374, dependence analysis during BB SLP handles cases that depend on the order of vectorized stmt generation in which case it ignores WAR dependencies. But that of course only applies to references that participate in the vectorization. Bootstrapped and tested on x86_64-unknown-lin