projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Renamed `as' => `llvm-as', `dis' => `llvm-dis', `link' => `llvm-link'.
[oota-llvm.git]
/
test
/
Transforms
/
SCCP
/
basictest.ll
1
; This is a basic sanity check for constant propogation. The add instruction
2
; should be eliminated.
3
4
; RUN: llvm-as < %s | opt -sccp | llvm-dis | not grep add
5
6
int %test(bool %B) {
7
br bool %B, label %BB1, label %BB2
8
BB1:
9
%Val = add int 0, 0
10
br label %BB3
11
BB2:
12
br label %BB3
13
BB3:
14
%Ret = phi int [%Val, %BB1], [1, %BB2]
15
ret int %Ret
16
}