[llvm] [VPlan] Use VPlan operand order for VPBlendRecipes. (PR #139475)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 06:36:11 PDT 2025


================
@@ -28,7 +28,7 @@ define void @test_blend_feeding_replicated_store_1(i64 %N, ptr noalias %src, ptr
 ; CHECK-NEXT:    [[TMP7:%.*]] = select <16 x i1> [[TMP6]], <16 x i1> zeroinitializer, <16 x i1> zeroinitializer
 ; CHECK-NEXT:    [[TMP8:%.*]] = xor <16 x i1> [[TMP6]], splat (i1 true)
 ; CHECK-NEXT:    [[TMP9:%.*]] = or <16 x i1> [[TMP7]], [[TMP8]]
-; CHECK-NEXT:    [[PREDPHI:%.*]] = select <16 x i1> [[TMP7]], <16 x ptr> [[BROADCAST_SPLAT]], <16 x ptr> zeroinitializer
+; CHECK-NEXT:    [[PREDPHI:%.*]] = select <16 x i1> [[TMP6]], <16 x ptr> [[BROADCAST_SPLAT]], <16 x ptr> zeroinitializer
----------------
fhahn wrote:

Yes, this is due to the second condition being constant `false`. We are only using the broadcast if the original condition (TMP6) is true, otherwise we don't reach the user due to constant `false`

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


More information about the llvm-commits mailing list