projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New testcase distilled from a large chunk of code Misha sent me.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2005-07-07-DeadPHILoop.ll
1
; RUN: llvm-as < %s | opt -instcombine -disable-output
2
3
; This example caused instcombine to spin into an infinite loop.
4
5
void %test(int *%P) {
6
ret void
7
Dead:
8
%X = phi int [%Y, %Dead]
9
%Y = div int %X, 10
10
store int %Y, int* %P
11
br label %Dead
12
}
13