repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2005-07-07-DeadPHILoop.ll
blob
ff43bd1914fa9f6bda6c3591549e83f6b4352799
1
; RUN: opt < %s -passes=instcombine -disable-output
2
3
; This example caused instcombine to spin into an infinite loop.
4
5
define void @test(ptr %P) {
6
ret void
7
8
Dead: ; preds = %Dead
9
%X = phi i32 [ %Y, %Dead ] ; <i32> [#uses=1]
10
%Y = sdiv i32 %X, 10 ; <i32> [#uses=2]
11
store i32 %Y, ptr %P
12
br label %Dead
13
}
14