This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/64974] [SH] Weird expansion of 'expected' operand in atomic_compare_and_swap<mode>
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Feb 2015 21:02:23 +0000
- Subject: [Bug middle-end/64974] [SH] Weird expansion of 'expected' operand in atomic_compare_and_swap<mode>
- Auto-submitted: auto-generated
- References: <bug-64974-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64974
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> ---
The problem got slightly worse with r220594. The dead store to the stack frame
is not eliminated anymore. Before the memory operands' addresses were loaded
into a reg using 'force_reg', which AFAIK dropped the memory aliasing info.
Now that 'force_reg' is not used anymore, the dead stores remain.
I don't quite understand how those things are related.