Open umanwizard opened 5 months ago
Thank you for reporting this.
It seems llc 18.1.0
can only codegen memcpy
calls with constexpr length : https://godbolt.org/z/6T3b1onfY
Optimization level -O3
introduces memcpy
calls with non-constexpr length.
Since in this example we can prove x is always <=8, couldn’t we replace the memcpy with a mask and store?
Consider this C code:
It fails to compile on clang 18: