[llvm] [GlobalIsel] Combine selects with constants (PR #76089)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 26 07:23:33 PST 2023


================
@@ -1100,9 +1100,7 @@ define <8 x i8> @vselect_constant_cond_zero_v8i8(<8 x i8> %a) {
 ; CHECK-GI:       // %bb.0:
 ; CHECK-GI-NEXT:    adrp x8, .LCPI83_0
 ; CHECK-GI-NEXT:    ldr d1, [x8, :lo12:.LCPI83_0]
-; CHECK-GI-NEXT:    shl v1.8b, v1.8b, #7
-; CHECK-GI-NEXT:    sshr v1.8b, v1.8b, #7
-; CHECK-GI-NEXT:    and v0.8b, v0.8b, v1.8b
+; CHECK-GI-NEXT:    and v0.8b, v1.8b, v0.8b
----------------
tschuett wrote:

Here are improvements.

https://github.com/llvm/llvm-project/pull/76089


More information about the llvm-commits mailing list