[llvm] [VPlan] Remove ComputeAnyOfResult, use ComputeReductionResult. (PR #190039)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 14:34:18 PDT 2026


================
@@ -459,8 +459,6 @@ define i1 @any_of_cost(ptr %start, ptr %end) #0 {
 ; CHECK:       [[MIDDLE_BLOCK]]:
 ; CHECK-NEXT:    [[BIN_RDX:%.*]] = or <2 x i1> [[TMP27]], [[TMP26]]
 ; CHECK-NEXT:    [[TMP29:%.*]] = call i1 @llvm.vector.reduce.or.v2i1(<2 x i1> [[BIN_RDX]])
-; CHECK-NEXT:    [[TMP30:%.*]] = freeze i1 [[TMP29]]
-; CHECK-NEXT:    [[RDX_SELECT:%.*]] = select i1 [[TMP30]], i1 false, i1 false
----------------
fhahn wrote:

Agreed, could try and fold this redundant pattern early already, although independent of the PR

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


More information about the llvm-commits mailing list