[llvm] [InstCombine] simplify average of lsb (PR #95684)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 01:03:10 PDT 2024
================
@@ -1453,9 +1453,8 @@ define i32 @bool_add_lshr_uses(i1 %a, i1 %b) {
; CHECK-NEXT: call void @use(i32 [[ZEXT_A]])
; CHECK-NEXT: [[ZEXT_B:%.*]] = zext i1 [[B:%.*]] to i32
; CHECK-NEXT: call void @use(i32 [[ZEXT_B]])
-; CHECK-NEXT: [[TMP1:%.*]] = and i1 [[A]], [[B]]
-; CHECK-NEXT: [[LSHR:%.*]] = zext i1 [[TMP1]] to i32
-; CHECK-NEXT: ret i32 [[LSHR]]
+; CHECK-NEXT: [[TMP1:%.*]] = and i32 [[ZEXT_A]], [[ZEXT_B]]
----------------
c8ef wrote:
Not sure if it's a regression.
https://github.com/llvm/llvm-project/pull/95684
More information about the llvm-commits
mailing list