https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
Marek Polacek changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #7 from Richard Biener ---
(In reply to harmeeksingh from comment #6)
>
> Equivalent code when written by hand where tmp is a intermediate array . The
> compiler
> vectorizes both loops.
>
> int k, i;
> /* vectorize the comp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #6 from harmeeksingh at gmail dot com ---
Equivalent code when written by hand where tmp is a intermediate array . The
compiler
vectorizes both loops.
int k, i;
/* vectorize the compares */
for (i=0; i < arraysize; ++i) {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #5 from Richard Biener ---
The test from comment #3 has exactly the same issue - the store to result[k]
cannot be vectorized in any meaningful way.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #4 from Marc Glisse ---
Please show what you would like the code to look like after vectorization.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #3 from harmeeksingh at gmail dot com ---
#include
#define VEC 1024
typedef long int int64;
typedef int int32;
void foo (int arraysize,
int *__restrict result,
int *__restrict selectvector,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938
--- Comment #1 from Andrew Pinski ---
array[selectvector[i]]
is not handled.