mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
New testcase for DSE
llvm-svn: 15198
This commit is contained in:
parent
31d9cbf7bb
commit
7822b1dcc4
8
test/Regression/Transforms/DeadStoreElimination/free.llx
Normal file
8
test/Regression/Transforms/DeadStoreElimination/free.llx
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
|
||||
|
||||
void %test(int* %Q, int* %P) {
|
||||
%DEAD = load int* %Q
|
||||
store int %DEAD, int* %P
|
||||
free int* %P
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user