blob: 9c624b08ca90d33cd13e78fb161906f732783c64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* { dg-do compile } */
/* { dg-options "-O1 -fscalar-evolutions -fdump-tree-scev-details" } */
int bar (void);
void foo ()
{
int a = -100;
int b = 2;
while (b)
{
if (bar ())
a += 3;
else
a = 2;
/* Exercises the case when one of the branches of the if-phi-node is a constant.
FIXME:
- What is the chrec representation of such an evolution?
- Does this kind of code exist in real codes? */
b += a;
}
}
/* For the moment the analyzer is expected to output a "don't know" answer,
both for the initial condition and for the evolution part. This is done
in the merge condition branches information.
a -> [-oo, +oo]
b -> {2, +, a_1}_1
*/
/* FIXME. */
|