llvm / llvm/llvm-project

[x86][clang] Missed optimization for memcpy/memmove on AVX512 targets when using [[assume(size <= 64)]]

Open
#202,883 3 comments 0 reactions 1 assignee Claimed by @Harishankar14 View on GitHub
backend:X86 missed-optimization
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

When you have [[assume(size <= 64]] while the size is still variable
the compiler still emits a jmp/call to memcpy/memmove
when masked load/stores could be used

https://clang.godbolt.org/z/Pa8qj7TTW

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.