[llvm-commits] [llvm] r83751 - in /llvm/trunk/test/Transforms/JumpThreading: basic.ll undef.ll
Chris Lattner
sabre at nondot.org
Sat Oct 10 20:55:30 PDT 2009
Author: lattner
Date: Sat Oct 10 22:55:30 2009
New Revision: 83751
URL: http://llvm.org/viewvc/llvm-project?rev=83751&view=rev
Log:
merge two tests.
Removed:
llvm/trunk/test/Transforms/JumpThreading/undef.ll
Modified:
llvm/trunk/test/Transforms/JumpThreading/basic.ll
Modified: llvm/trunk/test/Transforms/JumpThreading/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/basic.ll?rev=83751&r1=83750&r2=83751&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/basic.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/basic.ll Sat Oct 10 22:55:30 2009
@@ -6,7 +6,9 @@
declare i32 @f2()
declare void @f3()
-define i32 @test(i1 %cond) {
+define i32 @test1(i1 %cond) {
+; CHECK: @test1
+
br i1 %cond, label %T1, label %F1
T1:
@@ -37,6 +39,7 @@
;; cond is known false on Entry -> F1 edge!
define i32 @test2(i1 %cond) {
+; CHECK: @test2
Entry:
br i1 %cond, label %T1, label %F1
@@ -57,3 +60,18 @@
call void @f3()
ret i32 12
}
+
+
+; Undef handling.
+define i32 @test3(i1 %cond) {
+; CHECK: @test3
+; CHECK-NEXT: T1:
+; CHECK-NEXT: ret i32 42
+ br i1 undef, label %T1, label %F1
+
+T1:
+ ret i32 42
+
+F1:
+ ret i32 17
+}
Removed: llvm/trunk/test/Transforms/JumpThreading/undef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/undef.ll?rev=83750&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/undef.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/undef.ll (removed)
@@ -1,12 +0,0 @@
-; RUN: opt < %s -jump-threading -S | not grep {br }
-; RUN: opt < %s -jump-threading -S | grep {ret i32} | count 1
-
-define i32 @test(i1 %cond) {
- br i1 undef, label %T1, label %F1
-
-T1:
- ret i32 42
-
-F1:
- ret i32 17
-}
More information about the llvm-commits
mailing list