1 /* For PR tree-optimization/14784 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */
6 typedef struct bitmap_element_def
11 typedef struct bitmap_head_def {
12 bitmap_element *first;
15 typedef struct bitmap_head_def *bitmap;
17 bitmap_element *bitmap_free;
19 void foo (bitmap head, bitmap_element *elt)
23 /* Alias analysis problems used to prevent us from recognizing
24 that this condition is invariant. */
25 if (head->using_obstack)
31 /* { dg-final { scan-tree-dump-times "Unswitching" 1 "unswitch"} } */
32 /* { dg-final { cleanup-tree-dump "unswitch" } } */