comparison test/Analysis/BasicAA/unreachable-block.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children afa8332a0e37
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; RUN: opt -basicaa -aa-eval -disable-output < %s >& /dev/null
2
3 ; BasicAA shouldn't infinitely recurse on the use-def cycles in
4 ; unreachable code.
5
6 define void @func_2() nounwind {
7 entry:
8 unreachable
9
10 bb:
11 %t = select i1 undef, i32* %t, i32* undef
12 %p = select i1 undef, i32* %p, i32* %p
13 %q = select i1 undef, i32* undef, i32* %p
14 %a = getelementptr i8* %a, i32 0
15 unreachable
16 }