1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
9 for (i
= 0; i
< 100; i
++)
20 /* Load of 42 is moved out of the loop, introducing a new pseudo register. */
21 /* { dg-final { scan-rtl-dump-times "Decided" 1 "loop2_invariant" } } */
22 /* { dg-final { scan-rtl-dump-not "without introducing a new temporary register" "loop2_invariant" } } */