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

Side by Side Diff: test/Transforms/NaCl/strip-branchweight-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
OLDNEW
(Empty)
1 ; RUN: opt -S -strip-metadata %s | FileCheck %s
2
3 ; Test that !prof metadata is removed from branches
4 ; CHECK: @foo
5 ; CHECK-NOT: !prof
6 define i32 @foo(i32 %c) {
7 switch i32 %c, label %3 [
8 i32 5, label %4
9 i32 0, label %1
10 i32 4, label %2
11 ], !prof !0
12
13 ; <label>:1 ; preds = %0
14 br label %4
15
16 ; <label>:2 ; preds = %0
17 br label %4
18
19 ; <label>:3 ; preds = %0
20 br label %4
21
22 ; <label>:4 ; preds = %0, %3, %2, %1
23 %.0 = phi i32 [ -1, %1 ], [ 99, %2 ], [ 1, %3 ], [ 0, %0 ]
24 ret i32 %.0
25 }
26
27 ; CHECK: ret i32 %.0
28 ; CHECK-NOT: !0 =
29 !0 = metadata !{metadata !"branch_weights", i32 4, i32 256, i32 8, i32 4}
OLDNEW
« no previous file with comments | « test/Transforms/NaCl/strip-attributes.ll ('k') | test/Transforms/NaCl/strip-meta-leaves-debug.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698