mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
ab043ff680
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 llvm-svn: 230794
27 lines
666 B
LLVM
27 lines
666 B
LLVM
; RUN: opt < %s -globalopt | llvm-dis
|
|
; PR1896
|
|
|
|
@indirect1 = internal global void (i32)* null ; <void (i32)**> [#uses=2]
|
|
|
|
declare void @indirectmarked(i32)
|
|
|
|
define i32 @main() {
|
|
entry:
|
|
br i1 false, label %cond_next20.i, label %cond_true.i9
|
|
|
|
cond_true.i9: ; preds = %entry
|
|
ret i32 0
|
|
|
|
cond_next20.i: ; preds = %entry
|
|
store void (i32)* @indirectmarked, void (i32)** @indirect1, align 4
|
|
br i1 false, label %cond_next21.i.i23.i, label %stack_restore
|
|
|
|
stack_restore: ; preds = %cond_next20.i
|
|
ret i32 0
|
|
|
|
cond_next21.i.i23.i: ; preds = %cond_next20.i
|
|
%tmp6.i4.i = load i32, i32* bitcast (void (i32)** @indirect1 to i32*), align 4 ; <i32> [#uses=0]
|
|
ret i32 0
|
|
}
|
|
|