mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
New testcase for PR932
llvm-svn: 30695
This commit is contained in:
parent
79d9bdd28b
commit
1fb57b827d
@ -0,0 +1,20 @@
|
||||
; RUN: llvm-as < %s | opt -domtree -break-crit-edges -analyze -domtree | grep '3.*%brtrue$'
|
||||
; PR932
|
||||
implementation ; Functions:
|
||||
|
||||
declare void %use1(int)
|
||||
|
||||
void %f(int %i, bool %c) {
|
||||
entry:
|
||||
%A = seteq int %i, 0 ; <bool> [#uses=1]
|
||||
br bool %A, label %brtrue, label %brfalse
|
||||
|
||||
brtrue: ; preds = %brtrue, %entry
|
||||
%B = phi bool [ true, %brtrue ], [ false, %entry ] ; <bool> [#uses=1]
|
||||
call void %use1( int %i )
|
||||
br bool %B, label %brtrue, label %brfalse
|
||||
|
||||
brfalse: ; preds = %brtrue, %entry
|
||||
call void %use1( int %i )
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user