[llvm] [VPlan] Sink single-scalar VPI to replicate regions (PR #208906)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 19 02:11:01 PDT 2026
================
@@ -216,7 +216,8 @@ define void @single_incoming_needs_predication(i64 %a, i64 %b) {
; CHECK-NEXT: [[TMP9:%.*]] = extractelement <2 x i1> [[TMP2]], i64 1
; CHECK-NEXT: br i1 [[TMP9]], label [[PRED_LOAD_IF1:%.*]], label [[PRED_LOAD_CONTINUE2]]
; CHECK: pred.load.if1:
-; CHECK-NEXT: [[TMP10:%.*]] = add i16 [[TMP1]], 1
+; CHECK-NEXT: [[TMP17:%.*]] = trunc i64 [[INDEX]] to i16
----------------
artagnon wrote:
Yeah, the issue is that casts are always unmasked, and the best I can do for now is to check that the loop region doesn't have a header mask?
https://github.com/llvm/llvm-project/pull/208906
More information about the llvm-commits
mailing list