mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[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
This commit is contained in:
parent
87de3113c7
commit
cd290494fd
@ -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: }
|
||||
|
Loading…
Reference in New Issue
Block a user