[Bug tree-optimization/93102] [optimization] is it legal to avoid accessing const local array from stack ?
zhongyunde at tom dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 4 16:01:29 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93102
--- Comment #4 from zhongyunde at tom dot com <zhongyunde at tom dot com> ---
case from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96427 generates *.LC0,
but don't emit an aggregate copy a_1 = *.LC0, i.e. it is legal even for
non-const local array.
typedef int v4si __attribute__((vector_size(64)));
int bar (v4si v);
int foo (int i)
{
int a_1[131] = {38580, 691093, 378582, 691095, 938904, 251417, ... };
v4si * ptr = (v4si *)a_1;
v4si v = ptr[0];
return bar (v);
}
More information about the Gcc-bugs
mailing list