Resurrect r191017 " GVN proceeds in the presence of dead code" plus a fix to PR17307...
[oota-llvm.git] / test / Transforms / GVN / rle-nonlocal.ll
index 6b74e9a946d16ccedb09335fed1bb186673370d8..8229aaa14247f79f593b43780b6957898afff402 100644 (file)
@@ -1,8 +1,9 @@
 ; RUN: opt < %s -basicaa -gvn -S | FileCheck %s
 
-define i32 @main(i32** %p) {
+define i32 @main(i32** %p, i32 %x, i32 %y) {
 block1:
-       br i1 true, label %block2, label %block3
+    %cmp = icmp eq i32 %x, %y
+       br i1 %cmp , label %block2, label %block3
 
 block2:
  %a = load i32** %p