This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ping: latch mem to reg before multi-access in convert_move
- From: Olivier Hainque <hainque at adacore dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Olivier Hainque <hainque at adacore dot com>
- Date: Thu, 3 May 2012 12:27:19 +0200
- Subject: ping: latch mem to reg before multi-access in convert_move
- References: <CA26633C-1088-444D-A4BD-BE7BA3B69AB3@adacore.com>
Hello,
Ping for http://gcc.gnu.org/ml/gcc-patches/2012-04/msg00298.html
Thanks in advance,
Olivier
On Apr 5, 2012, at 17:30 , Olivier Hainque wrote:
...
> The original problem we had with this was the introduction of an
> artificial race condition in addition to the potential performance
> impact.
>
> We had fixed this with the attached patch, which simply forces "from"
> into a REG if it is a MEM, in addition to the current condition.
> While our original testcases don't expose the problem with current
> versions of the compiler, the issue appears to remain latent and the
> change still looks sensible in any case.
...
> * expr.c (convert_move): Latch mem integer inputs into a
> register before expanding a multi-instructions sequence.