[llvm] [VPlan] Allow folding not (cmp eq) -> icmp ne with other select users (PR #154497)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 04:12:20 PDT 2025
================
@@ -96,7 +96,7 @@ define i32 @test2() {
; CHECK-NEXT: [[SMAX:%.*]] = call i32 @llvm.smax.i32(i32 [[TMP0]], i32 4)
; CHECK-NEXT: [[TMP1:%.*]] = sub i32 [[SMAX]], [[B_PROMOTED]]
; CHECK-NEXT: [[MIN_ITERS_CHECK:%.*]] = icmp ult i32 [[TMP1]], 2
-; CHECK-NEXT: br i1 [[MIN_ITERS_CHECK]], label %[[SCALAR_PH:.*]], label %[[VECTOR_PH:.*]]
+; CHECK-NEXT: br i1 [[MIN_ITERS_CHECK]], label %[[_LR_PH_I:.*]], label %[[VECTOR_PH:.*]]
----------------
lukel97 wrote:
Manually undid the changes from the other functions
https://github.com/llvm/llvm-project/pull/154497
More information about the llvm-commits
mailing list