unreachable-use.ll 470 B

1234567891011121314151617181920212223242526272829
  1. ; RUN: opt < %s -lcssa -S -verify-loop-info | FileCheck %s
  2. ; PR6546
  3. ; LCSSA doesn't need to transform uses in blocks not reachable
  4. ; from the entry block.
  5. ; CHECK: %tmp33 = load i1*, i1** %tmp
  6. define fastcc void @dfs() nounwind {
  7. bb:
  8. br label %bb44
  9. bb44:
  10. br i1 undef, label %bb7, label %bb45
  11. bb7:
  12. %tmp = bitcast i1** undef to i1**
  13. br label %bb15
  14. bb15:
  15. br label %bb44
  16. bb32:
  17. %tmp33 = load i1*, i1** %tmp, align 8
  18. br label %bb45
  19. bb45:
  20. unreachable
  21. }