2002-06-24 17:45:37 +00:00
|
|
|
; -simplifycfg is not folding blocks if there is a PHI node involved. This
|
|
|
|
; should be fixed eventually
|
|
|
|
|
2013-01-31 01:04:23 +00:00
|
|
|
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
2008-03-10 07:21:50 +00:00
|
|
|
|
|
|
|
define i32 @main(i32 %argc) {
|
|
|
|
; <label>:0
|
2013-01-31 01:04:23 +00:00
|
|
|
; CHECK-NOT: br label %InlinedFunctionReturnNode
|
2008-03-10 07:21:50 +00:00
|
|
|
br label %InlinedFunctionReturnNode
|
|
|
|
InlinedFunctionReturnNode: ; preds = %0
|
|
|
|
%X = phi i32 [ 7, %0 ] ; <i32> [#uses=1]
|
|
|
|
%Y = add i32 %X, %argc ; <i32> [#uses=1]
|
|
|
|
ret i32 %Y
|
2002-06-24 17:45:37 +00:00
|
|
|
}
|
|
|
|
|