projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove explicit control flow through the use of the 'not' script
[oota-llvm.git]
/
test
/
Transforms
/
ConstProp
/
phi.ll
1
; This is a basic sanity check for constant propogation. The add instruction
2
; should be eliminated.
3
4
; RUN: as < %s | opt -constprop -die | dis | not grep phi
5
6
int %test(bool %B) {
7
BB0:
8
br bool %B, label %BB1, label %BB3
9
BB1:
10
br label %BB3
11
BB3:
12
%Ret = phi int [1, %BB0], [1, %BB1]
13
ret int %Ret
14
}