[llvm] [DAG] Fold SETCC against isKnownNeverZero (PR #184010)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 10:02:20 PST 2026


================
@@ -418,7 +418,7 @@ define void @test8(i32 signext %arg, i32 signext %arg1) nounwind {
 ; CHECK-NEXT:    # =>This Inner Loop Header: Depth=1
 ; CHECK-NEXT:    call foo
 ; CHECK-NEXT:    ori a0, a0, -256
-; CHECK-NEXT:    bnez a0, .LBB7_1
+; CHECK-NEXT:    j .LBB7_1
----------------
sweiglbosker wrote:

Looks like a codegen improvement to me, and the unnecessary sext.w removal that is being tested still fires so seems fine

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


More information about the llvm-commits mailing list