Issue 165949
Summary [AArch64] Suboptimal `memset` for non-power of two sizes
Labels backend:AArch64, missed-optimization
Assignees
Reporter Kmeakin
    Split off from https://github.com/llvm/llvm-project/issues/165625

https://godbolt.org/z/n3qq3EYrT

LLVM assembly:
```asm
set4:
        mov     w8, #16843009
        and     w9, w1, #0xff
        mul     w8, w9, w8
        str     w8, [x0]
 ret
```

GCC assembly:
```asm
set4:
        dup     v31.16b, w1
 str     s31, [x0]
        ret
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to