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

Side by Side Diff: test/Transforms/GlobalOpt/alias-used.ll

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 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/MC/AsmParser/exprs.s ('k') | test/Transforms/InstCombine/add4.ll » ('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 -globalopt -S | FileCheck %s
2
3 @c = global i8 42
4
5 @llvm.used = appending global [3 x i8*] [i8* bitcast (void ()* @fa to i8*), i8* bitcast (void ()* @f to i8*), i8* @ca], section "llvm.metadata"
6 ; CHECK: @llvm.used = appending global [3 x i8*] [i8* bitcast (void ()* @fa to i 8*), i8* bitcast (void ()* @f to i8*), i8* @ca], section "llvm.metadata"
7
8 @llvm.compiler_used = appending global [2 x i8*] [i8* bitcast (void ()* @fa to i 8*), i8* bitcast (void ()* @fa3 to i8*)], section "llvm.metadata"
9
10 @sameAsUsed = global [3 x i8*] [i8* bitcast (void ()* @fa to i8*), i8* bitcast ( void ()* @f to i8*), i8* @ca]
11 ; CHECK: @sameAsUsed = global [3 x i8*] [i8* bitcast (void ()* @f to i8*), i8* b itcast (void ()* @f to i8*), i8* @c]
12
13 @other = global i32* bitcast (void ()* @fa to i32*)
14 ; CHECK: @other = global i32* bitcast (void ()* @f to i32*)
15
16 @fa = alias internal void ()* @f
17 ; CHECK: @fa = alias internal void ()* @f
18
19 @fa2 = alias internal void ()* @f
20 ; CHECK-NOT: @fa2
21
22 @fa3 = alias internal void ()* @f
23 ; CHECK: @fa3
24
25 @ca = alias internal i8* @c
26 ; CHECK: @ca = alias internal i8* @c
27
28 define void @f() {
29 ret void
30 }
31
32 define i8* @g() {
33 ret i8* bitcast (void ()* @fa to i8*);
34 }
35
36 define i8* @g2() {
37 ret i8* bitcast (void ()* @fa2 to i8*);
38 }
39
40 define i8* @h() {
41 ret i8* @ca
42 }
OLDNEW
« no previous file with comments | « test/MC/AsmParser/exprs.s ('k') | test/Transforms/InstCombine/add4.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698