[llvm] [GlobalIsel] Combine select to integer minmax (second attemnt). (PR #77520)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 12:55:22 PST 2024
================
@@ -2421,7 +2421,7 @@ define i8 @atomicrmw_min_i8(ptr %ptr, i8 %rhs) {
; CHECK-NOLSE-O1-NEXT: ldaxrb w8, [x0]
; CHECK-NOLSE-O1-NEXT: sxtb w9, w8
; CHECK-NOLSE-O1-NEXT: cmp w9, w1, sxtb
-; CHECK-NOLSE-O1-NEXT: csel w9, w8, w1, le
+; CHECK-NOLSE-O1-NEXT: csel w9, w8, w1, lt
----------------
tschuett wrote:
le : Signed less than or equal
lt : Signed less than
Both are smin.
https://github.com/llvm/llvm-project/pull/77520
More information about the llvm-commits
mailing list