From cd290494fdd1721a4cec05529dbed470edb8c3aa Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 26 Dec 2016 18:10:09 +0000 Subject: [PATCH] [NewGVN] Change test to reflect difference between GVN and NewGVN. The current GVN algorithm folds unconditional branches to, it claims, expose more PRE oportunities. The folding, if really needed, (which is not sure, as it's not really proved it improves analysis) can be done by an earlier cleanup pass instead of GVN itself. Ack'ed/SGTM'd by Daniel Berlin. Differential Revision: https://reviews.llvm.org/D28117 llvm-svn: 290546 --- test/Transforms/NewGVN/basic.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Transforms/NewGVN/basic.ll b/test/Transforms/NewGVN/basic.ll index f6670aac6cc..587e9abe033 100644 --- a/test/Transforms/NewGVN/basic.ll +++ b/test/Transforms/NewGVN/basic.ll @@ -1,4 +1,3 @@ -; XFAIL: * ; RUN: opt < %s -newgvn -S | FileCheck %s define i32 @main() { @@ -12,5 +11,7 @@ block2: ; CHECK: define i32 @main() { ; CHECK-NEXT: block1: +; CHECK-NEXT: br label %block2 +; CHECK: block2: ; CHECK-NEXT: ret i32 0 ; CHECK-NEXT: }