diff options
| author | bors <bors@rust-lang.org> | 2025-09-18 07:32:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-18 07:32:49 +0000 |
| commit | 97a987f14c5bd948f7ee8dba75999f104a6f03a7 (patch) | |
| tree | d2cce447d7a0bb1144a6378dec1554c105e4d340 /compiler/rustc_codegen_llvm/src/intrinsic.rs | |
| parent | 4793ef5cf527339f072c39d129477ad5bb678f9e (diff) | |
| parent | e04567c363e1f0417bf8bf24830c2bc536020582 (diff) | |
| download | rust-97a987f14c5bd948f7ee8dba75999f104a6f03a7.tar.gz rust-97a987f14c5bd948f7ee8dba75999f104a6f03a7.zip | |
Auto merge of #142544 - Sa4dUs:prevent-abi-changes, r=ZuseZ4
Prevent ABI changes affect EnzymeAD This PR handles ABI changes for autodiff input arguments to improve Enzyme compatibility. Fundamentally this adjusts activities when a function argument is lowered as an `ScalarPair`, so there's no mismatch between diff activities and args. Also removes activities corresponding to ZSTs. fixes: https://github.com/rust-lang/rust/issues/144025 r? `@ZuseZ4`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index 85f71f331a4..e7f4a357048 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -1208,7 +1208,8 @@ fn codegen_autodiff<'ll, 'tcx>( adjust_activity_to_abi( tcx, - fn_source.ty(tcx, TypingEnv::fully_monomorphized()), + fn_source, + TypingEnv::fully_monomorphized(), &mut diff_attrs.input_activity, ); |
