https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199
--- Comment #3 from Andreas Krebbel ---
Moving the local definition of dst out of the function to global scope prevents
the store from getting eliminated.
union DST dst;
As expected the store is still in the FRE dump:
_1 = src_6(D)->a;
ds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199
Andreas Krebbel changed:
What|Removed |Added
Target||x86_64
Build|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108199
--- Comment #1 from Andreas Krebbel ---
Created attachment 54150
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54150&action=edit
Testcase