llvm-for-llvmta/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg6-dead-self...

26 lines
677 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v1 -S < %s | FileCheck %s
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v2 -S < %s | FileCheck %s
; RUN: opt -tut-simplifycfg -tut-simplifycfg-version=v3 -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
}