Avatar
factorial の declaration-site では再帰回数がわからないから展開できなくない?
6:05 AM
; Function Attrs: nounwind define hidden swiftcc i64 @"$s4main9factorial2ofS2i_tF"(i64) local_unnamed_addr #2 { entry: %1 = icmp sgt i64 %0, 1 br i1 %1, label %2, label %8 ; <label>:2: ; preds = %entry %3 = add i64 %0, -1 %4 = tail call swiftcc i64 @"$s4main9factorial2ofS2i_tF"(i64 %3) %5 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %0, i64 %4) %6 = extractvalue { i64, i1 } %5, 0 %7 = extractvalue { i64, i1 } %5, 1 br i1 %7, label %10, label %8