unreachable-block.ll 392 B

12345678910111213141516
  1. ; RUN: opt -basicaa -aa-eval -disable-output < %s >& /dev/null
  2. ; BasicAA shouldn't infinitely recurse on the use-def cycles in
  3. ; unreachable code.
  4. define void @func_2() nounwind {
  5. entry:
  6. unreachable
  7. bb:
  8. %t = select i1 undef, i32* %t, i32* undef
  9. %p = select i1 undef, i32* %p, i32* %p
  10. %q = select i1 undef, i32* undef, i32* %p
  11. %a = getelementptr i8, i8* %a, i32 0
  12. unreachable
  13. }