Skip to content

Commit

Permalink
[Reassociate] add check lines; NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317805 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rotateright committed Nov 9, 2017
1 parent 7f4962a commit c7ddf7c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/Transforms/Reassociate/add_across_block_crash.ll
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,3 +27,4 @@ bb1:
bb2:
ret void
}

0 comments on commit c7ddf7c

Please sign in to comment.