[llvm-commits] [llvm] r40449 - in /llvm/trunk/test/Transforms/DeadLoadElimination: ./ dg.exp simple.ll volatile.ll
Owen Anderson
resistor at mac.com
Mon Jul 23 15:18:08 PDT 2007
Author: resistor
Date: Mon Jul 23 17:18:05 2007
New Revision: 40449
URL: http://llvm.org/viewvc/llvm-project?rev=40449&view=rev
Log:
Add testcases for FastDLE.
Added:
llvm/trunk/test/Transforms/DeadLoadElimination/
llvm/trunk/test/Transforms/DeadLoadElimination/dg.exp
llvm/trunk/test/Transforms/DeadLoadElimination/simple.ll
llvm/trunk/test/Transforms/DeadLoadElimination/volatile.ll
Added: llvm/trunk/test/Transforms/DeadLoadElimination/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/DeadLoadElimination/dg.exp?rev=40449&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/DeadLoadElimination/dg.exp (added)
+++ llvm/trunk/test/Transforms/DeadLoadElimination/dg.exp Mon Jul 23 17:18:05 2007
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
Added: llvm/trunk/test/Transforms/DeadLoadElimination/simple.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/DeadLoadElimination/simple.ll?rev=40449&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/DeadLoadElimination/simple.ll (added)
+++ llvm/trunk/test/Transforms/DeadLoadElimination/simple.ll Mon Jul 23 17:18:05 2007
@@ -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
+}
Added: llvm/trunk/test/Transforms/DeadLoadElimination/volatile.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/DeadLoadElimination/volatile.ll?rev=40449&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/DeadLoadElimination/volatile.ll (added)
+++ llvm/trunk/test/Transforms/DeadLoadElimination/volatile.ll Mon Jul 23 17:18:05 2007
@@ -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
+}
More information about the llvm-commits
mailing list