1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-details" } */
12 __attribute__((noinline
))
13 ox (struct bovid
*cow
)
15 cow
->red
= cow
->red
+ cow
->green
+ cow
->green
;
22 __attribute__((noinline
))
23 ox_improved (struct bovid
*calf
)
26 calf
->red
= calf
->red
+ calf
->green
;
28 calf
->red
= calf
->green
+ 87;
34 int main (int argc
, char *argv
[])
48 /* { dg-final { scan-tree-dump "About to replace expr cow_.*D.->red with \\*ISRA" "eipa_sra" } } */
49 /* { dg-final { scan-tree-dump "About to replace expr cow_.*D.->green with ISRA" "eipa_sra" } } */
50 /* { dg-final { scan-tree-dump "About to replace expr calf_.*D.->red with \\*ISRA" "eipa_sra" } } */
51 /* { dg-final { scan-tree-dump "About to replace expr calf_.*D.->green with ISRA" "eipa_sra" } } */
52 /* { dg-final { cleanup-tree-dump "eipa_sra" } } */