middle-end: check for vector mode before calling get_mask_mode [PR116074]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-thread-2g.c
blobede03e09183a97f738af7c34e77c2304acf9466d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom2-details" } */
4 void foo();
5 void bla();
6 void bar();
8 void dont_thread_1 (void)
10 int i = 0;
11 int first = 1;
15 if (first)
16 foo ();
17 else
18 bar ();
20 first = 0;
21 bla ();
22 } while (i++ < 100);
25 /* This one can only be threaded if both paths to the
26 conditional inside the loop are threaded at the same
27 time. Else we potentially end up with irreducible
28 loops. */
29 /* { dg-final { scan-tree-dump-not "IRREDUCIBLE_LOOP" "dom2" } } */