URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
struct A
|
struct A
|
{
|
{
|
int a;
|
int a;
|
};
|
};
|
|
|
int foo (struct A *a)
|
int foo (struct A *a)
|
{
|
{
|
static int c = 30;
|
static int c = 30;
|
int x;
|
int x;
|
|
|
a->a = c;
|
a->a = c;
|
/* Dominator optimizations will replace the use of 'a->a' with 'c', but
|
/* Dominator optimizations will replace the use of 'a->a' with 'c', but
|
they won't copy the virtual operands for 'c' from its originating
|
they won't copy the virtual operands for 'c' from its originating
|
statement. This exposes symbol 'c' without a correct SSA version
|
statement. This exposes symbol 'c' without a correct SSA version
|
number. */
|
number. */
|
x = a->a;
|
x = a->a;
|
return x;
|
return x;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.