| Issue |
207912
|
| Summary |
[X86][APX] will increase instructions
|
| Labels |
backend:X86,
missed-optimization
|
| Assignees |
|
| Reporter |
Andarwinux
|
https://godbolt.org/z/dfo71KnGh
noticed from #207909
```c
int f(int a, int b) { return (a & b) != b ? (a | b) : a; }
```
APX:
```asm
f(int, int):
andn eax, edi, esi
test eax, eax
cmovne eax, esi
or eax, edi
ret
```
without APX:
```asm
f(int, int):
andn eax, edi, esi
cmovne eax, esi
or eax, edi
ret
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs