[PATCH] D144137: [PseudoProbe] Refactoring a test

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 14:03:29 PST 2023


hoy created this revision.
Herald added subscribers: modimo, wenlei.
Herald added a project: All.
hoy requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144137

Files:
  llvm/test/Transforms/LoopVectorize/pseudoprobe.ll
  llvm/test/Transforms/SampleProfile/pseudo-probe-loop-vectorize.ll


Index: llvm/test/Transforms/LoopVectorize/pseudoprobe.ll
===================================================================
--- llvm/test/Transforms/LoopVectorize/pseudoprobe.ll
+++ llvm/test/Transforms/LoopVectorize/pseudoprobe.ll
@@ -11,10 +11,10 @@
 for.body:                                         ; preds = %for.body, %entry
   %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
   %arrayidx = getelementptr inbounds float, ptr %b, i64 %indvars.iv
-  %0 = load float, ptr %arrayidx, align 4, !tbaa !1
+  %0 = load float, ptr %arrayidx, align 4
   %conv = fptosi float %0 to i32
   %arrayidx2 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv
-  store i32 %conv, ptr %arrayidx2, align 4, !tbaa !5
+  store i32 %conv, ptr %arrayidx2, align 4
   %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
   %exitcond = icmp eq i64 %indvars.iv.next, 1600
   call void @llvm.pseudoprobe(i64 3666282617048535130, i64 2, i32 0, i64 -1)
@@ -45,9 +45,3 @@
 !llvm.pseudo_probe_desc = !{!0}
 
 !0 = !{i64 3666282617048535130, i64 52824598631, !"test1"}
-!1 = !{!2, !2, i64 0}
-!2 = !{!"float", !3, i64 0}
-!3 = !{!"omnipotent char", !4, i64 0}
-!4 = !{!"Simple C/C++ TBAA"}
-!5 = !{!6, !6, i64 0}
-!6 = !{!"int", !3, i64 0}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144137.497786.patch
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230215/da5faa47/attachment.bin>


More information about the llvm-commits mailing list