mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 04:05:05 +00:00
Add testcases for FastDLE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b8894bb67
commit
f309070ca4
3
test/Transforms/DeadLoadElimination/dg.exp
Normal file
3
test/Transforms/DeadLoadElimination/dg.exp
Normal file
@ -0,0 +1,3 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
7
test/Transforms/DeadLoadElimination/simple.ll
Normal file
7
test/Transforms/DeadLoadElimination/simple.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; RUN: llvm-as < %s | opt -fdle | llvm-dis | not grep DEAD
|
||||
|
||||
define void @test(i32* %Q, i32* %P) {
|
||||
%A = load i32* %Q
|
||||
%DEAD = load i32* %Q ; <i32> [#uses=1]
|
||||
ret void
|
||||
}
|
7
test/Transforms/DeadLoadElimination/volatile.ll
Normal file
7
test/Transforms/DeadLoadElimination/volatile.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; RUN: llvm-as < %s | opt -fdle | llvm-dis | grep NOTDEAD
|
||||
|
||||
define void @test(i32* %Q, i32* %P) {
|
||||
%A = load i32* %Q
|
||||
%NOTDEAD = volatile load i32* %Q ; <i32> [#uses=1]
|
||||
ret void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user