[llvm] Allow more dead AND operations to be eliminated (PR #123686)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 21:17:09 PST 2025


================
@@ -24,8 +24,9 @@ define i16 @zpop_i8_i16(i8 %x) {
 ; SLOW-NEXT:    srwi 4, 3, 4
 ; SLOW-NEXT:    add 3, 3, 4
 ; SLOW-NEXT:    rlwinm 4, 3, 24, 28, 31
-; SLOW-NEXT:    clrlwi 3, 3, 28
+; SLOW-NEXT:    andi. 3, 3, 3855
 ; SLOW-NEXT:    add 3, 3, 4
+; SLOW-NEXT:    clrlwi 3, 3, 27
----------------
arsenm wrote:

Regression 

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


More information about the llvm-commits mailing list