1。memory aliasing problem
void t(int *x, int *y)
{
*x += *y;
*x += *y;
}
void t2(int *x, int *y)
{
*x += 2* *y;
}
point the differ of the two functions. why function t can't be optimized to function t2 ?
1。memory aliasing problem
void t(int *x, int *y)
{
*x += *y;
*x += *y;
}
void t2(int *x, int *y)
{
*x += 2* *y;
}
point the differ of the two functions. why function t can't be optimized to function t2 ?