[llvm-commits] [llvm] r60471 - /llvm/trunk/test/Transforms/JumpThreading/undef.ll
Chris Lattner
sabre at nondot.org
Tue Dec 2 23:48:27 PST 2008
Author: lattner
Date: Wed Dec 3 01:48:27 2008
New Revision: 60471
URL: http://llvm.org/viewvc/llvm-project?rev=60471&view=rev
Log:
testcase for br undef folding.
Added:
llvm/trunk/test/Transforms/JumpThreading/undef.ll
Added: llvm/trunk/test/Transforms/JumpThreading/undef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/undef.ll?rev=60471&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/undef.ll (added)
+++ llvm/trunk/test/Transforms/JumpThreading/undef.ll Wed Dec 3 01:48:27 2008
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -jump-threading | llvm-dis | not grep {br }
+; RUN: llvm-as < %s | opt -jump-threading | llvm-dis | 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