pr23608.ll 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ; RUN: opt -S -licm %s | FileCheck %s
  2. ; ModuleID = '../pr23608.ll'
  3. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  4. target triple = "x86_64-unknown-linux-gnu"
  5. %struct.PyFrameObject = type { i32 }
  6. @a = common global %struct.PyFrameObject* null, align 8
  7. @__msan_origin_tls = external thread_local(initialexec) global i32
  8. define void @fn1() {
  9. entry:
  10. br label %indirectgoto
  11. while.cond: ; preds = %indirectgoto, %bb15
  12. %tmp = load %struct.PyFrameObject*, %struct.PyFrameObject** @a, align 8
  13. %_msld = load i64, i64* inttoptr (i64 and (i64 ptrtoint (%struct.PyFrameObject** @a to i64), i64 -70368744177665) to i64*), align 8
  14. %tmp1 = load i32, i32* inttoptr (i64 add (i64 and (i64 ptrtoint (%struct.PyFrameObject** @a to i64), i64 -70368744177665), i64 35184372088832) to i32*), align 8
  15. %f_iblock = getelementptr inbounds %struct.PyFrameObject, %struct.PyFrameObject* %tmp, i64 0, i32 0
  16. br label %bb2
  17. bb: ; preds = %while.cond
  18. call void @__msan_warning_noreturn()
  19. unreachable
  20. bb2: ; preds = %while.cond
  21. %tmp3 = load i32, i32* %f_iblock, align 4
  22. %tmp4 = ptrtoint i32* %f_iblock to i64
  23. %tmp8 = inttoptr i64 %tmp4 to i32*
  24. %tobool = icmp eq i64 %tmp4, 0
  25. br i1 %tobool, label %bb13, label %bb15
  26. bb13: ; preds = %bb2
  27. ; CHECK-LABEL bb13:
  28. ; CHECK: %tmp8.le = inttoptr
  29. %.lcssa7 = phi i32* [ %tmp8, %bb2 ]
  30. call void @__msan_warning_noreturn()
  31. unreachable
  32. bb15: ; preds = %bb2
  33. br i1 %tobool, label %while.end, label %while.cond
  34. while.end: ; preds = %bb15
  35. ret void
  36. indirectgoto: ; preds = %indirectgoto, %entry
  37. indirectbr i8* null, [label %indirectgoto, label %while.cond]
  38. }
  39. declare void @__msan_warning_noreturn()