2015-02-15 12:13:57 +08:00
|
|
|
; RUN: opt < %s -lcssa -S -verify-loop-info | FileCheck %s
|
2010-03-09 09:53:33 +08:00
|
|
|
; PR6546
|
|
|
|
|
|
|
|
; LCSSA doesn't need to transform uses in blocks not reachable
|
|
|
|
; from the entry block.
|
|
|
|
|
2015-02-28 05:17:42 +08:00
|
|
|
; CHECK: %tmp33 = load i1*, i1** %tmp
|
2015-02-15 12:13:57 +08:00
|
|
|
|
2010-03-09 09:53:33 +08:00
|
|
|
define fastcc void @dfs() nounwind {
|
|
|
|
bb:
|
|
|
|
br label %bb44
|
|
|
|
|
|
|
|
bb44:
|
|
|
|
br i1 undef, label %bb7, label %bb45
|
|
|
|
|
|
|
|
bb7:
|
|
|
|
%tmp = bitcast i1** undef to i1**
|
|
|
|
br label %bb15
|
|
|
|
|
|
|
|
bb15:
|
|
|
|
br label %bb44
|
|
|
|
|
|
|
|
bb32:
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp33 = load i1*, i1** %tmp, align 8
|
2010-03-09 09:53:33 +08:00
|
|
|
br label %bb45
|
|
|
|
|
|
|
|
bb45:
|
|
|
|
unreachable
|
|
|
|
}
|