cyclic.ll 719 B

1234567891011121314151617181920212223242526
  1. ; RUN: not opt -instcombine < %s 2>&1 | FileCheck %s
  2. ; CHECK: Cycle found in TBAA metadata.
  3. define void @test6(i32* %gi) #0 {
  4. entry:
  5. store i32 42, i32* %gi, align 4, !tbaa !0
  6. br label %for.cond
  7. for.cond: ; preds = %for.body, %entry
  8. br i1 undef, label %for.body, label %for.end
  9. for.body: ; preds = %for.cond
  10. store i32 undef, i32* %gi, align 4, !tbaa !2
  11. br label %for.cond
  12. for.end: ; preds = %for.cond
  13. ret void
  14. }
  15. attributes #0 = { nounwind ssp uwtable }
  16. !0 = !{!1, !1, i64 0}
  17. !1 = !{!"Simple C/C++ TBAA"}
  18. !2 = distinct !{!3, !2, i64 0}
  19. !3 = !{!"int", !4}
  20. !4 = !{!"omnipotent ", !1}