mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
New testcases for bug in globaldce
llvm-svn: 2955
This commit is contained in:
parent
1abd637044
commit
e25d9fb4d5
@ -0,0 +1,12 @@
|
||||
; RUN: as < %s | opt -globaldce
|
||||
;
|
||||
%X = global void() * %func
|
||||
implementation
|
||||
|
||||
internal void %func() { ; Not dead, can be reachable via X
|
||||
ret void
|
||||
}
|
||||
|
||||
void %main() {
|
||||
ret void
|
||||
}
|
10
test/Regression/Transforms/GlobalDCE/Makefile
Normal file
10
test/Regression/Transforms/GlobalDCE/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
LEVEL = ../../../..
|
||||
include $(LEVEL)/test/Makefile.tests
|
||||
|
||||
TESTS := $(wildcard *.ll)
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
|
||||
|
||||
Output/%.ll.out: %.ll Output/.dir $(LOPT)
|
||||
-$(TESTRUNR) $<
|
Loading…
Reference in New Issue
Block a user