Skip to content

Commit ad575d4

Browse files
committed
cleanups
1 parent 03f22a4 commit ad575d4

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

compiler/rustc_builtin_macros/src/autodiff.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,6 @@ mod llvm_enzyme {
856856
let kind = TyKind::Tup(ThinVec::new());
857857
let ty = P(rustc_ast::Ty { kind, id: ast::DUMMY_NODE_ID, span, tokens: None });
858858
d_decl.output = FnRetTy::Ty(ty.clone());
859-
dbg!(&x.ret_activity);
860859
assert!(matches!(x.ret_activity, DiffActivity::None));
861860
// this won't be used below, so any type would be fine.
862861
ty

compiler/rustc_codegen_llvm/src/builder/autodiff.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ fn compute_enzyme_fn_ty<'ll>(
202202

203203
let void_ty = unsafe { llvm::LLVMVoidTypeInContext(cx.llcx) };
204204
if inner_ret_ty == void_ty {
205-
dbg!(&fn_to_diff);
206205
// This indicates that even the inner function has an sret.
207206
// Right now I only look for an sret in the outer function.
208207
// This *probably* needs some extra handling, but I never ran
@@ -241,8 +240,6 @@ fn compute_enzyme_fn_ty<'ll>(
241240
}
242241
}
243242

244-
dbg!(&outer_fn);
245-
246243
// LLVM can figure out the input types on it's own, so we take a shortcut here.
247244
unsafe { llvm::LLVMFunctionType(ret_ty, ptr::null(), 0, True) }
248245
}

0 commit comments

Comments
 (0)