[Reassociate] add check lines; NFC

llvm-svn: 317805
This commit is contained in:
Sanjay Patel 2017-11-09 16:25:35 +00:00
parent cfbba621c5
commit d4787fcca8
1 changed files with 11 additions and 1 deletions

View File

@ -1,8 +1,17 @@
; RUN: opt < %s -reassociate -S | FileCheck %s
; CHECK-LABEL: main
; This test is to make sure while processing a block, uses of instructions
; from a different basic block don't get added to be re-optimized
define void @main() {
; CHECK-LABEL: @main(
; CHECK-NEXT: entry:
; CHECK-NEXT: br i1 undef, label %bb1, label %bb2
; CHECK: bb1:
; CHECK-NEXT: ret void
; CHECK: bb2:
; CHECK-NEXT: ret void
;
entry:
%0 = fadd fast float undef, undef
br i1 undef, label %bb1, label %bb2
@ -18,3 +27,4 @@ bb1:
bb2:
ret void
}