[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / Transforms / SimplifyCFG / PHINode.ll
blob8270ab78fd11f631c82fafe86db20995e82fd6ae
1 ; -simplifycfg -simplifycfg-require-and-preserve-domtree=1 is not folding blocks if there is a PHI node involved.  This
2 ; should be fixed eventually
4 ; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
6 define i32 @main(i32 %argc) {
7 ; <label>:0
8 ; CHECK-NOT: br label %InlinedFunctionReturnNode
9         br label %InlinedFunctionReturnNode
10 InlinedFunctionReturnNode:              ; preds = %0
11         %X = phi i32 [ 7, %0 ]          ; <i32> [#uses=1]
12         %Y = add i32 %X, %argc          ; <i32> [#uses=1]
13         ret i32 %Y