[llvm-commits] [llvm] r131621 - /llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll
Rafael Espindola
rafael.espindola at gmail.com
Wed May 18 19:35:26 PDT 2011
Author: rafael
Date: Wed May 18 21:35:26 2011
New Revision: 131621
URL: http://llvm.org/viewvc/llvm-project?rev=131621&view=rev
Log:
Add test for PR9946.
Added:
llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll
Added: llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll?rev=131621&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll (added)
+++ llvm/trunk/test/Transforms/SimplifyCFG/PR9946.ll Wed May 18 21:35:26 2011
@@ -0,0 +1,18 @@
+; RUN: opt %s -simplifycfg -disable-output
+
+ at foo = external constant i32
+
+define i32 @f() {
+entry:
+ br i1 icmp eq (i64 and (i64 ptrtoint (i32* @foo to i64), i64 15), i64 0), label %if.end, label %if.then
+
+if.then: ; preds = %entry
+ br label %return
+
+if.end: ; preds = %entry
+ br label %return
+
+return: ; preds = %if.end, %if.then
+ %storemerge = phi i32 [ 1, %if.end ], [ 0, %if.then ]
+ ret i32 %storemerge
+}
More information about the llvm-commits
mailing list