Revert rGe6ccb57bb3f6b761f2310e97fd6ca99eff42f73e "[SLP] Add cost model for `llvm...
[llvm-project.git] / llvm / test / Analysis / BasicAA / unreachable-block.ll
blobe30176eb79a5be9596f799c16a0c28c640dfcdc7
1 ; RUN: opt -aa-pipeline=basic-aa -passes=aa-eval -disable-output < %s > /dev/null 2>&1
3 ; BasicAA shouldn't infinitely recurse on the use-def cycles in
4 ; unreachable code.
6 define void @func_2() nounwind {
7 entry:
8   unreachable
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, i8* %a, i32 0
15   unreachable