mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
New testcase that ipsccp should handle.
llvm-svn: 18789
This commit is contained in:
parent
851533abfd
commit
f86d071b5a
23
test/Regression/Transforms/SCCP/ipsccp-gvar.ll
Normal file
23
test/Regression/Transforms/SCCP/ipsccp-gvar.ll
Normal file
@ -0,0 +1,23 @@
|
||||
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
|
||||
|
||||
%G = internal global int undef
|
||||
|
||||
implementation
|
||||
|
||||
void %foo() {
|
||||
%X = load int* %G
|
||||
store int %X, int* %G
|
||||
ret void
|
||||
}
|
||||
|
||||
int %bar() {
|
||||
%V = load int* %G
|
||||
%C = seteq int %V, 17
|
||||
br bool %C, label %T, label %F
|
||||
T:
|
||||
store int 17, int* %G
|
||||
ret int %V
|
||||
F:
|
||||
store int 123, int* %G
|
||||
ret int 0
|
||||
}
|
Loading…
Reference in New Issue
Block a user