summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/coalesce-2.c
blob: 5be67c64df0e0c9806db71fe47f38c8c3ac70aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-expand-details" } */

float total = 0.2;
void foo(int n)
{
  int i;
  for (i = 0; i < n; i++)
    total += i;
}

/* Verify that out-of-ssa coalescing did its job by verifying there are not
   any partition copies inserted.  */

/* { dg-final { scan-rtl-dump-not "partition copy" "expand"} } */