Home
last modified time | relevance | path

Searched hist:"0 c0408e86dbe8f44d4b27bf42130e8ac905361d6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/crypto/
H A Dblake2b_generic.cdiff 0c0408e86dbe8f44d4b27bf42130e8ac905361d6 Tue May 05 08:53:45 CDT 2020 Arnd Bergmann <arnd@arndb.de> crypto: blake2b - Fix clang optimization for ARMv7-M

When building for ARMv7-M, clang-9 or higher tries to unroll some loops,
which ends up confusing the register allocator to the point of generating
rather bad code and using more than the warning limit for stack frames:

warning: stack frame size of 1200 bytes in function 'blake2b_compress' [-Wframe-larger-than=]

Forcing it to not unroll the final loop avoids this problem.

Fixes: 91d689337fe8 ("crypto: blake2b - add blake2b generic implementation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>