[llvm] [VPlan] First step towards VPlan cost modeling. (PR #92555)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 07:01:50 PDT 2024
alexey-bataev wrote:
Looks like still crashes:
```
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define fastcc void @FmoInit() #0 {
entry:
br label %for.body25.i
for.body25.i: ; preds = %for.body25.i, %entry
%indvars.iv12.i1 = phi i64 [ 0, %entry ], [ %indvars.iv.next13.i.7, %for.body25.i ]
%div66.i = lshr i64 %indvars.iv12.i1, 1
%arrayidx27.i = getelementptr nusw i32, ptr null, i64 %div66.i
%0 = load i32, ptr %arrayidx27.i, align 4
%indvars.iv.next13.i = or i64 0, 0
%arrayidx29.i.1 = getelementptr i32, ptr null, i64 %indvars.iv.next13.i
store i32 0, ptr %arrayidx29.i.1, align 4
%indvars.iv.next13.i.1 = or disjoint i64 %indvars.iv12.i1, 2
%div66.i.2 = lshr i64 %indvars.iv.next13.i.1, 1
%arrayidx27.i.2 = getelementptr i32, ptr null, i64 %div66.i.2
%1 = load i32, ptr %arrayidx27.i.2, align 4
%indvars.iv.next13.i.7 = add i64 %indvars.iv12.i1, 8
%niter144.ncmp.7 = icmp eq i64 %indvars.iv.next13.i.7, 0
br i1 %niter144.ncmp.7, label %FmoGenerateMbToSliceGroupMap.exit.loopexit124.unr-lcssa.loopexit, label %for.body25.i
FmoGenerateMbToSliceGroupMap.exit.loopexit124.unr-lcssa.loopexit: ; preds = %for.body25.i
ret void
}
attributes #0 = { "min-legal-vector-width"="0" "target-cpu"="cascadelake" }
```
development/bin/opt -S --passes=loop-vectorize ./reduced.ll
https://github.com/llvm/llvm-project/pull/92555
More information about the llvm-commits
mailing list