1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining -fdump-tree-optimized -fno-ipa-icf" } */
3 /* { dg-add-options bind_pic_locally } */
10 i_can_be_propagated_fully (int *a
)
22 i_can_be_propagated_fully2 (int *a
)
24 i_can_be_propagated_fully (a
);
25 i_can_be_propagated_fully (a
);
26 i_can_be_propagated_fully (a
);
29 i_can_not_be_propagated_fully (int *a
)
41 i_can_not_be_propagated_fully2 (int *a
)
44 i_can_not_be_propagated_fully (a
);
52 i_can_not_be_propagated_fully (a
);
60 i_can_not_be_propagated_fully (a
);
66 i_can_be_propagated_fully2 (array
);
67 i_can_be_propagated_fully2 (array
);
69 for (i
= 0; i
< 7; i
++)
70 i_can_not_be_propagated_fully2 (array
);
71 i_can_not_be_propagated_fully2 (array
);
74 /* { dg-final { scan-ipa-dump-times "Creating a specialized node of i_can_be_propagated_fully2" 1 "cp" } } */
75 /* { dg-final { scan-ipa-dump-times "Creating a specialized node of i_can_be_propagated_fully/" 1 "cp" } } */
76 /* { dg-final { scan-ipa-dump-not "Creating a specialized node of i_can_not_be_propagated_fully2" "cp" } } */
77 /* { dg-final { scan-ipa-dump-not "Creating a specialized node of i_can_not_be_propagated_fully/" "cp" } } */
78 /* { dg-final { scan-tree-dump-not "i_can_be_propagated_fully \\(" "optimized" } } */
79 /* { dg-final { scan-tree-dump-not "i_can_be_propagated_fully2 \\(" "optimized" } } */
80 /* { dg-final { cleanup-ipa-dump "cp" } } */
81 /* { dg-final { cleanup-tree-dump "optimized" } } */