https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29144
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |64700
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=64700
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
a, c is really just another case of PR 64700.
b and d are already optimized on the gimple level by PRE to:
```
_10 = a_4(D) - b_5(D);
if (c_3(D) != 0)
goto <bb 4>; [50.00%]
else
goto <bb 3>; [50.00%]
<bb 3> [local count: 536870913]:
r_7 = o_6(D) + _10;
<bb 4> [local count: 1073741824]:
# r_2 = PHI <_10(2), r_7(3)>
```
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64700
[Bug 64700] Sink common code through PHI