Closed erickq closed 1 year ago
An IR file is:
; RUN: opt < %s -passes='require<profile-summary>,loop-vectorize' -pgso -S | FileCheck %s -check-prefix=PGSO ; Vectorize with versioning for unit stride for PGSO and enabled vectorization. ; define void @stride1_pgso(ptr noalias %B, i32 %BStride) !prof !14 { entry: br label %for.body for.body: %iv = phi i32 [ %iv.next, %for.body ], [ 0, %entry ] %mulB = mul nsw i32 %iv, %BStride %gepOfB = getelementptr inbounds i16, ptr %B, i32 %mulB store i16 42, ptr %gepOfB, align 4 %iv.next = add nuw nsw i32 %iv, 1 %exitcond = icmp eq i32 %iv.next, 1025 br i1 %exitcond, label %for.end, label %for.body, !llvm.loop !15 for.end: ret void }
command: alive-tv test.ll test.bc
Right, noalias isn't support right now. There's no ETA for this, I'm afraid.
An IR file is:
command: alive-tv test.ll test.bc