| Issue |
53045
|
| Summary |
[X86] Codegen for one of 'absolute difference' patterns is suboptimal
|
| Labels |
backend:X86
|
| Assignees |
|
| Reporter |
LebedevRI
|
As being pointed out in https://github.com/halide/Halide/pull/6545
we don't codegen `a < b ? b - a : a - b` as well as we do `max(a,b) - min(b, a)`
https://godbolt.org/z/MvMj9MPW9
https://alive2.llvm.org/ce/z/pVHePi
The question is, what do we think is more canonical in IR?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs