Re: [PATCH] ipa: propagate attributes for target attribute clones

2023-04-11 Thread Richard Biener via Gcc-patches
On Mon, Apr 3, 2023 at 11:03 AM Martin Liška wrote: > > Hi. > > The patch propagates noreturn attribute for MV functions. However, I noticed > we've got the following ICE when we do the same for TREE_READONLY attr: > > $ cat tc.c > double bar() __attribute__((target_clones("avx,avx2,avx512f,defaul

[PATCH] ipa: propagate attributes for target attribute clones

2023-04-03 Thread Martin Liška
Hi. The patch propagates noreturn attribute for MV functions. However, I noticed we've got the following ICE when we do the same for TREE_READONLY attr: $ cat tc.c double bar() __attribute__((target_clones("avx,avx2,avx512f,default"))); double bar() { return 1.2f; } int foo() { return (int)bar(