[llvm] [GlobalIsel] Combine selects with constants (PR #76089)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 26 07:09:03 PST 2023
================
@@ -2514,7 +2517,8 @@ define i32 @cmp_to_ands6(i32 %num) {
; GISEL: // %bb.0:
; GISEL-NEXT: and w8, w0, #0xfe
; GISEL-NEXT: cmp w8, #16
-; GISEL-NEXT: csel w0, w8, wzr, hs
+; GISEL-NEXT: cset w9, hs
+; GISEL-NEXT: and w0, w9, w8
----------------
aemerson wrote:
This looks worse?
https://github.com/llvm/llvm-project/pull/76089
More information about the llvm-commits
mailing list