forked from OSchip/llvm-project
[NewGVN] Actually check the NewGVN output.
Apparently I messed up squashing two consecutive commits. llvm-svn: 303516
This commit is contained in:
parent
f3540cff9d
commit
3318970cd3
|
@ -1,7 +1,37 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -newgvn %s -S | FileCheck %s
|
||||
|
||||
@b = external global i32, align 4
|
||||
@a = external global i32, align 4
|
||||
define void @tinkywinky() {
|
||||
; CHECK-LABEL: @tinkywinky(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: br label [[L1:%.*]]
|
||||
; CHECK: l1.loopexit:
|
||||
; CHECK-NEXT: br label [[L1]]
|
||||
; CHECK: l1:
|
||||
; CHECK-NEXT: [[F_0:%.*]] = phi i32* [ @b, [[ENTRY:%.*]] ], [ @a, [[L1_LOOPEXIT:%.*]] ]
|
||||
; CHECK-NEXT: br label [[FOR_COND:%.*]]
|
||||
; CHECK: for.cond.loopexit:
|
||||
; CHECK-NEXT: store i8 undef, i8* null
|
||||
; CHECK-NEXT: br label [[FOR_COND]]
|
||||
; CHECK: for.cond:
|
||||
; CHECK-NEXT: br i1 undef, label [[FOR_END14:%.*]], label [[FOR_COND1_PREHEADER:%.*]]
|
||||
; CHECK: for.cond1.preheader:
|
||||
; CHECK-NEXT: br label [[FOR_BODY3:%.*]]
|
||||
; CHECK: for.cond1:
|
||||
; CHECK-NEXT: br label [[L2:%.*]]
|
||||
; CHECK: for.body3:
|
||||
; CHECK-NEXT: br i1 undef, label [[FOR_COND1:%.*]], label [[L1_LOOPEXIT]]
|
||||
; CHECK: l2:
|
||||
; CHECK-NEXT: [[G_4:%.*]] = phi i32* [ @b, [[FOR_END14]] ], [ @a, [[FOR_COND1]] ]
|
||||
; CHECK-NEXT: [[F_2:%.*]] = phi i32* [ [[F_0]], [[FOR_END14]] ], [ @a, [[FOR_COND1]] ]
|
||||
; CHECK-NEXT: br label [[FOR_INC:%.*]]
|
||||
; CHECK: for.inc:
|
||||
; CHECK-NEXT: br i1 false, label [[FOR_COND_LOOPEXIT:%.*]], label [[FOR_INC]]
|
||||
; CHECK: for.end14:
|
||||
; CHECK-NEXT: br label [[L2]]
|
||||
;
|
||||
entry:
|
||||
br label %l1
|
||||
l1.loopexit:
|
||||
|
|
Loading…
Reference in New Issue