mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Filecheckized 2x tests in SimplifyCFG and removed their date prefix to fit with current llvm style for test names.
llvm-svn: 174011
This commit is contained in:
parent
d1d96ba2d8
commit
bb4501dec6
@ -1,8 +1,6 @@
|
||||
; Basic block #2 should not be merged into BB #3!
|
||||
;
|
||||
; RUN: opt < %s -simplifycfg -S | \
|
||||
; RUN: grep "br label"
|
||||
;
|
||||
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
||||
|
||||
declare void @foo()
|
||||
|
||||
@ -13,6 +11,7 @@ bb0:
|
||||
br i1 %cond218, label %bb3, label %bb2
|
||||
bb2: ; preds = %bb0
|
||||
call void @foo( )
|
||||
; CHECK: br label %bb3
|
||||
br label %bb3
|
||||
bb3: ; preds = %bb2, %bb0
|
||||
%reg117 = phi i32 [ 110, %bb2 ], [ %reg108, %bb0 ] ; <i32> [#uses=1]
|
@ -1,10 +1,11 @@
|
||||
; -simplifycfg is not folding blocks if there is a PHI node involved. This
|
||||
; should be fixed eventually
|
||||
|
||||
; RUN: opt < %s -simplifycfg -S | not grep br
|
||||
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
||||
|
||||
define i32 @main(i32 %argc) {
|
||||
; <label>:0
|
||||
; CHECK-NOT: br label %InlinedFunctionReturnNode
|
||||
br label %InlinedFunctionReturnNode
|
||||
InlinedFunctionReturnNode: ; preds = %0
|
||||
%X = phi i32 [ 7, %0 ] ; <i32> [#uses=1]
|
Loading…
Reference in New Issue
Block a user