Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; ModuleID = '/Users/augustonoronha/Developer/llvm-pass-skeleton-xcode/test.ll'
- source_filename = "test.c"
- target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
- target triple = "x86_64-apple-macosx10.14.0"
- ; Function Attrs: noinline nounwind ssp uwtable
- define i32 @f(i32) #0 {
- br label %2
- 2: ; preds = %10, %1
- %.02 = phi i32 [ 30, %1 ], [ %9, %10 ]
- %.01 = phi i32 [ 0, %1 ], [ %.1, %10 ]
- %.0 = phi i32 [ 0, %1 ], [ %11, %10 ]
- %3 = icmp slt i32 %.0, 60
- br i1 %3, label %4, label %12
- 4: ; preds = %2
- %5 = icmp eq i1 false, true
- br i1 %5, label %6, label %8
- 6: ; preds = %4
- %7 = add nsw i32 %.01, %.0
- br label %8
- 8: ; preds = %6, %4
- %.1 = phi i32 [ %7, %6 ], [ %.01, %4 ]
- %9 = add nsw i32 %.02, 1
- br label %10
- 10: ; preds = %8
- %11 = add nsw i32 %.0, 2
- br label %2
- 12: ; preds = %2
- br label %13
- 13: ; preds = %21, %12
- %.02newLoop = phi i32 [ %.02, %12 ], [ %20, %21 ]
- %.01newLoop = phi i32 [ %.01, %12 ], [ %.1newLoop, %21 ]
- %.0newLoop = phi i32 [ %.0, %12 ], [ %22, %21 ]
- %14 = icmp slt i32 %.0newLoop, %0
- br i1 %14, label %15, label %23
- 15: ; preds = %13
- %16 = icmp eq i1 false, false
- br i1 %16, label %17, label %19
- 17: ; preds = %15
- %18 = add nsw i32 %.01newLoop, %.0newLoop
- br label %19
- 19: ; preds = %17, %15
- %.1newLoop = phi i32 [ %18, %17 ], [ %.01newLoop, %15 ]
- %20 = add nsw i32 %.02newLoop, 1
- br label %21
- 21: ; preds = %19
- %22 = add nsw i32 %.0newLoop, 2
- br label %13
- 23: ; preds = %13
- %.01.lcssa = phi i32 [ %.01newLoop, %13 ]
- ret i32 %.01.lcssa
- }
- attributes #0 = { noinline nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
- !llvm.module.flags = !{!0, !1, !2}
- !llvm.ident = !{!3}
- !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 10, i32 14]}
- !1 = !{i32 1, !"wchar_size", i32 4}
- !2 = !{i32 7, !"PIC Level", i32 2}
- !3 = !{!"Apple LLVM version 10.0.1 (clang-1001.0.46.4)"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement