This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Memory alignment optimization
- From: Anton Titov <anton at titov dot net>
- To: gcc at gcc dot gnu dot org
- Cc: Marc Glisse <marc dot glisse at inria dot fr>
- Date: Tue, 28 May 2013 12:27:38 +0300
- Subject: Re: Memory alignment optimization
- References: <51A475CE dot 5050606 at titov dot net> <alpine dot DEB dot 2 dot 02 dot 1305281117550 dot 8599 at stedding dot saclay dot inria dot fr>
On 28.05.2013 12:19, Marc Glisse wrote:
On Tue, 28 May 2013, Anton Titov wrote:
I'm trying to force gcc to trust me that my memory allocation
function is returning aligned memory. So far I tried everything I
found with no luck.
Did you try using __builtin_assume_aligned?
I've tried it now and it solved both problems - now no conditionals are
generated both before and after "rep stos" operation.
Thank you very much for the hint.
Best,
Anton