2
0

2006-06-03-IncorrectIDFPhis.ll 1.0 KB

123456789101112131415161718192021
  1. ; RUN: opt < %s -loop-simplify -lcssa -S | \
  2. ; RUN: grep "%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry"
  3. %struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
  4. define void @__llvm_sjljeh_try_catching_longjmp_exception() {
  5. entry:
  6. br i1 false, label %UnifiedReturnBlock, label %no_exit
  7. no_exit: ; preds = %endif, %entry
  8. %SJE.0.0 = phi %struct.SetJmpMapEntry* [ %tmp.24, %endif ], [ null, %entry ] ; <%struct.SetJmpMapEntry*> [#uses=1]
  9. br i1 false, label %then, label %endif
  10. then: ; preds = %no_exit
  11. %tmp.20 = getelementptr %struct.SetJmpMapEntry, %struct.SetJmpMapEntry* %SJE.0.0, i32 0, i32 1 ; <i32*> [#uses=0]
  12. ret void
  13. endif: ; preds = %no_exit
  14. %tmp.24 = load %struct.SetJmpMapEntry*, %struct.SetJmpMapEntry** null ; <%struct.SetJmpMapEntry*> [#uses=1]
  15. br i1 false, label %UnifiedReturnBlock, label %no_exit
  16. UnifiedReturnBlock: ; preds = %endif, %entry
  17. ret void
  18. }