2009-07-13-MemDepSortFail.ll 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ; RUN: opt < %s -gvn | llvm-dis
  2. ; PR4256
  3. target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
  4. target triple = "i386-pc-linux-gnu"
  5. %llvm.dbg.anchor.type = type { i32, i32 }
  6. %struct.cset = type { i8*, i8, i8, i32, i8* }
  7. %struct.lmat = type { %struct.re_guts*, i32, %llvm.dbg.anchor.type*, i8*, i8*, i8*, i8*, i8**, i32, i8*, i8*, i8*, i8*, i8* }
  8. %struct.re_guts = type { i32*, %struct.cset*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8*, i8*, i32, i32, i32, i32, [1 x i8] }
  9. define i8* @lbackref(%struct.lmat* %m, i8* %start, i8* %stop, i32 %startst, i32 %stopst, i32 %lev, i32 %rec) nounwind {
  10. entry:
  11. br label %bb63
  12. bb: ; preds = %bb63
  13. switch i32 0, label %bb62 [
  14. i32 268435456, label %bb2
  15. i32 805306368, label %bb9
  16. i32 -1610612736, label %bb51
  17. ]
  18. bb2: ; preds = %bb
  19. br label %bb62
  20. bb9: ; preds = %bb
  21. %0 = load i8, i8* %sp.1, align 1 ; <i8> [#uses=0]
  22. br label %bb62
  23. bb51: ; preds = %bb
  24. %1 = load i8, i8* %sp.1, align 1 ; <i8> [#uses=0]
  25. ret i8* null
  26. bb62: ; preds = %bb9, %bb2, %bb
  27. br label %bb63
  28. bb63: ; preds = %bb84, %bb69, %bb62, %entry
  29. %sp.1 = phi i8* [ null, %bb62 ], [ %sp.1.lcssa, %bb84 ], [ %start, %entry ], [ %sp.1.lcssa, %bb69 ] ; <i8*> [#uses=3]
  30. br i1 false, label %bb, label %bb65
  31. bb65: ; preds = %bb63
  32. %sp.1.lcssa = phi i8* [ %sp.1, %bb63 ] ; <i8*> [#uses=4]
  33. br i1 false, label %bb66, label %bb69
  34. bb66: ; preds = %bb65
  35. ret i8* null
  36. bb69: ; preds = %bb65
  37. switch i32 0, label %bb108.loopexit2.loopexit.loopexit [
  38. i32 1342177280, label %bb63
  39. i32 1476395008, label %bb84
  40. i32 1879048192, label %bb104
  41. i32 2013265920, label %bb93
  42. ]
  43. bb84: ; preds = %bb69
  44. %2 = tail call i8* @lbackref(%struct.lmat* %m, i8* %sp.1.lcssa, i8* %stop, i32 0, i32 %stopst, i32 0, i32 0) nounwind ; <i8*> [#uses=0]
  45. br label %bb63
  46. bb93: ; preds = %bb69
  47. ret i8* null
  48. bb104: ; preds = %bb69
  49. %sp.1.lcssa.lcssa33 = phi i8* [ %sp.1.lcssa, %bb69 ] ; <i8*> [#uses=0]
  50. unreachable
  51. bb108.loopexit2.loopexit.loopexit: ; preds = %bb69
  52. ret i8* null
  53. }