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

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

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 ; RUN: opt -S -strip-metadata %s | FileCheck %s 1 ; RUN: opt -S -strip-metadata %s | FileCheck %s
2 2
3 ; Test that !prof metadata is removed from branches 3 ; Test that !prof metadata is removed from branches
4 ; CHECK: @foo 4 ; CHECK: @foo
5 ; CHECK-NOT: !prof 5 ; CHECK-NOT: !prof
6 define i32 @foo(i32 %c) { 6 define i32 @foo(i32 %c) {
7 switch i32 %c, label %3 [ 7 switch i32 %c, label %3 [
8 i32 5, label %4 8 i32 5, label %4
9 i32 0, label %1 9 i32 0, label %1
10 i32 4, label %2 10 i32 4, label %2
11 ], !prof !0 11 ], !prof !0
12 12
13 ; <label>:1 ; preds = %0 13 ; <label>:1 ; preds = %0
14 br label %4 14 br label %4
15 15
16 ; <label>:2 ; preds = %0 16 ; <label>:2 ; preds = %0
17 br label %4 17 br label %4
18 18
19 ; <label>:3 ; preds = %0 19 ; <label>:3 ; preds = %0
20 br label %4 20 br label %4
21 21
22 ; <label>:4 ; preds = %0, %3, %2, %1 22 ; <label>:4 ; preds = %0, %3, %2, %1
23 %.0 = phi i32 [ -1, %1 ], [ 99, %2 ], [ 1, %3 ], [ 0, %0 ] 23 %.0 = phi i32 [ -1, %1 ], [ 99, %2 ], [ 1, %3 ], [ 0, %0 ]
24 ret i32 %.0 24 ret i32 %.0
25 } 25 }
26 26
27 ; CHECK: ret i32 %.0 27 ; CHECK: ret i32 %.0
28 ; CHECK-NOT: !0 = 28 ; CHECK-NOT: !0 =
29 !0 = metadata !{metadata !"branch_weights", i32 4, i32 256, i32 8, i32 4} 29 !0 = !{!"branch_weights", i32 4, i32 256, i32 8, i32 4}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698