forked from OSchip/llvm-project
26 lines
728 B
LLVM
26 lines
728 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v1 -enable-new-pm=0 -S < %s | FileCheck %s
|
|
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v2 -enable-new-pm=0 -S < %s | FileCheck %s
|
|
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v3 -enable-new-pm=0 -S < %s | FileCheck %s
|
|
|
|
define i32 @simp1() {
|
|
; CHECK-LABEL: @simp1(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: ret i32 1
|
|
; CHECK: bb.1:
|
|
; CHECK-NEXT: br label [[BB_1:%.*]]
|
|
; CHECK: bb.2:
|
|
; CHECK-NEXT: [[P:%.*]] = phi i32 [ 0, [[BB_2:%.*]] ]
|
|
; CHECK-NEXT: br label [[BB_2]]
|
|
;
|
|
entry:
|
|
ret i32 1
|
|
|
|
bb.1:
|
|
br label %bb.1
|
|
|
|
bb.2:
|
|
%p = phi i32 [ 0, %bb.2]
|
|
br label %bb.2
|
|
}
|