llvm/llvm/test/Transforms/NewGVN/2007-07-25-InfiniteLoop.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
; RUN: opt < %s -passes=newgvn -S | FileCheck %s

  %struct.INT2 = type { i32, i32 }
@blkshifts = external global ptr		; <ptr> [#uses=2]

define i32 @xcompact() {
; CHECK-LABEL: define i32 @xcompact() {
; CHECK-NEXT:  entry:
; CHECK-NEXT:    store ptr null, ptr @blkshifts, align 4
; CHECK-NEXT:    br label [[BB:%.*]]
; CHECK:       bb:
; CHECK-NEXT:    br label [[BB]]
;
entry:
  store ptr null, ptr @blkshifts, align 4
  br label %bb

bb:		; preds = %bb, %entry
  %tmp10 = load ptr, ptr @blkshifts, align 4		; <ptr> [#uses=0]
  br label %bb
}