Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: test/Transforms/NaCl/strip-tbaa-metadata.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/Transforms/NaCl/strip-meta-leaves-debug.ll ('k') | test/lit.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: opt -S -strip-metadata %s | FileCheck %s
2
3 ; Test that !tbaa is removed from loads/stores.
4 ; CHECK: @foo
5 ; CHECK-NOT: !tbaa
6 define double @foo(i32* nocapture %ptr1, double* nocapture %ptr2) nounwind reado nly {
7 store i32 99999, i32* %ptr1, align 1, !tbaa !0
8 %1 = load double* %ptr2, align 8, !tbaa !3
9 ret double %1
10 }
11
12 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
13
14 ; Test that !tbaa is removed from calls.
15 ; CHECK: @bar
16 ; CHECK-NOT: !tbaa
17 define void @bar(i8* nocapture %p, i8* nocapture %q,
18 i8* nocapture %s) nounwind {
19 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %p, i8* %q,
20 i64 16, i32 1, i1 false), !tbaa !4
21 store i8 2, i8* %s, align 1, !tbaa !5
22 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %q, i8* %p,
23 i64 16, i32 1, i1 false), !tbaa !4
24 ; CHECK ret void
25 ret void
26 }
27
28 ; Test that the metadata nodes aren't left over.
29 ; CHECK-NOT: !0 =
30
31 !0 = metadata !{metadata !"int", metadata !1}
32 !1 = metadata !{metadata !"omnipotent char", metadata !2}
33 !2 = metadata !{metadata !"Simple C/C++ TBAA"}
34 !3 = metadata !{metadata !"double", metadata !1}
35 !4 = metadata !{metadata !"A", metadata !1}
36 !5 = metadata !{metadata !"B", metadata !1}
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/strip-meta-leaves-debug.ll ('k') | test/lit.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698