[PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning
Nick Desaulniers
ndesaulniers at google.com
Wed Jan 20 23:24:29 EST 2021
On Wed, Jan 20, 2021 at 8:13 PM Arvind Sankar <nivedita at alum.mit.edu> wrote:
>
> On Wed, Jan 20, 2021 at 03:09:53PM -0800, Nick Desaulniers wrote:
> > So I'm thinking if we extend out this pattern to the rest of the
> > functions, we can actually avoid calls to
> > kernel_neon_begin()/kernel_neon_end() for cases in which pointers
> > would be too close to use the vectorized loop version; meaning for GCC
> > this would be an optimization (don't save neon registers when you're
> > not going to use them). I would probably consider moving
> > include/asm-generic/xor.h somewhere under arch/arm/
> > perhaps...err...something for the other users of <asm-generic/xor.h>.
>
> We can't directly do the patch below since there are other users of the
> asm-generic/xor.h implementations than just the neon file. If it's too
> much work to check and add __restrict everywhere, I think we'd either
> need to copy the code into the xor-neon file,
Yes; I'd rather copy that code into xor-neon, or someone under
arch/arm/ at least.
> or maybe do some ifdeffery
> so __restrict is only used for the neon version.
--
Thanks,
~Nick Desaulniers
More information about the linux-arm-kernel
mailing list