Re: [PATCH] predcom: Enabled by loop vect at O2 [PR100794]

2021-06-02 Thread Richard Sandiford via Gcc-patches
"Kewen.Lin via Gcc-patches" writes: > Hi, > > As PR100794 shows, in the current implementation PRE bypasses > some optimization to avoid introducing loop carried dependence > which stops loop vectorizer to vectorize the loop. At -O2, > there is no downstream pass to re-catch this kind of opportun

[PATCH] predcom: Enabled by loop vect at O2 [PR100794]

2021-06-02 Thread Kewen.Lin via Gcc-patches
Hi, As PR100794 shows, in the current implementation PRE bypasses some optimization to avoid introducing loop carried dependence which stops loop vectorizer to vectorize the loop. At -O2, there is no downstream pass to re-catch this kind of opportunity if loop vectorizer fails to vectorize that l