mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
New testcase
llvm-svn: 11851
This commit is contained in:
parent
7d273bc532
commit
5f39fa8149
22
test/Regression/Analysis/DSGraph/constant_globals.ll
Normal file
22
test/Regression/Analysis/DSGraph/constant_globals.ll
Normal file
@ -0,0 +1,22 @@
|
||||
; RUN: analyze %s -datastructure-gc -dsgc-dspass=bu -dsgc-check-flags=A:SM
|
||||
; Constant globals should not mark stuff incomplete. This should allow the
|
||||
; bu pass to resolve the indirect call immediately in "test", allowing %A to
|
||||
; be marked complete and the store to happen.
|
||||
|
||||
; This is the common case for handling vtables aggressively.
|
||||
|
||||
%G = constant void (int*)* %foo
|
||||
|
||||
implementation
|
||||
|
||||
void %foo(int *%X) {
|
||||
store int 0, int* %X
|
||||
ret void
|
||||
}
|
||||
|
||||
void %test() {
|
||||
%Fp = load void (int*)** %G
|
||||
%A = alloca int
|
||||
call void %Fp(int* %A)
|
||||
ret void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user