https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128999

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
I think PRE should not be creating the phis in the first place.


Take:
```
typedef unsigned _BitInt(256) T;
void ff(T);
void gg(int a)
{
    T b;
    if (a)
      b = 0;
    else
      b = -1;
    ff(b);
}
```


Compile it with `-O2 -fdisable-tree-phiopt1  -fdisable-tree-phiopt2 ` and you
will see two stores.

Note SRA also creates the issue too with ` -O2 -fno-tree-pre -fno-code-hoisting
 -fdisable-tree-phiopt1  -fdisable-tree-phiopt2  `.

Reply via email to