[llvm] [X86] abs i8 - perform as abs i32 if we have access to CMOV (PR #95101)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 02:50:01 PDT 2024
RKSimon wrote:
It's annoying that we end up having to copy/extend the non-negated param:
```asm
movsbl %dil, %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
```
when we should be able to get away with
```asm
movsbl %dil, %eax
negl %eax
cmovnsl %edi, %eax
```
https://github.com/llvm/llvm-project/pull/95101
More information about the llvm-commits
mailing list