1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
13 typedef int (*tp
) (void);
15 static tp aa
[] = {a2
, a1
, a1
, a1
, a1
};
17 void setp (int (**pp
) (void), int i
)
22 *pp
= aa
[(i
& 2) + 1];
31 for (i
= 0; i
< 10; i
++)
40 /* { dg-final-use { scan-ipa-dump "Indirect call -> direct call.* a1 transformation on insn" "profile"} } */
41 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
42 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
43 /* { dg-final-use { cleanup-ipa-dump "profile" } } */