rust/compiler/rustc_codegen_llvm/src
Matthias Krüger 33b0238586
Rollup merge of #127168 - DianQK:cast-size, r=workingjubilee
Use the aligned size for alloca at args/ret when the pass mode is cast

Fixes #75839. Fixes #121028.

The `load` and `store` instructions in LLVM access the aligned size. For example, `load { i64, i32 }` accesses 16 bytes on x86_64: https://alive2.llvm.org/ce/z/n8CHAp.

BTW, this example is expected to be optimized to immediate UB by Alive2: https://rust.godbolt.org/z/b7xK7hv1c and https://alive2.llvm.org/ce/z/vZDtZH.

r? compiler
2024-07-02 17:47:48 +02:00
..
back Rollup merge of #124712 - Enselic:deprecate-inline-threshold, r=pnkfelix 2024-06-24 15:51:00 -04:00
coverageinfo coverage: Rename MC/DC conditions_num to num_conditions 2024-05-30 13:16:07 +10:00
debuginfo Move vcall_visibility_metadata optimization hint out of a debuginfo generation method 2024-06-21 19:26:06 +00:00
llvm cleanup: run rustfmt 2024-05-23 15:10:04 -04:00
abi.rs Use the aligned size for alloca at args when the pass mode is cast. 2024-07-02 06:33:35 +08:00
allocator.rs Add -Zuse-sync-unwind 2023-12-31 15:27:43 +08:00
asm.rs Rollup merge of #126555 - beetrees:f16-inline-asm-arm, r=Amanieu 2024-06-22 12:57:18 +02:00
attributes.rs Support #[patchable_function_entries] 2024-06-25 18:23:41 +02:00
base.rs compiler: replace cstr macro with c str literals in compiler and few other c str replacements 2023-12-03 14:54:09 +03:00
builder.rs Remove #[macro_use] extern crate tracing from rustc_codegen_llvm. 2024-05-23 18:02:40 +10:00
callee.rs Remove #[macro_use] extern crate tracing from rustc_codegen_llvm. 2024-05-23 18:02:40 +10:00
common.rs Remove const_bitcast from ConstMethods 2024-06-21 19:26:07 +00:00
consts.rs Remove #[macro_use] extern crate tracing from rustc_codegen_llvm. 2024-05-23 18:02:40 +10:00
context.rs Remove check_overflow method from MiscMethods 2024-06-21 19:30:26 +00:00
declare.rs Remove #[macro_use] extern crate tracing from rustc_codegen_llvm. 2024-05-23 18:02:40 +10:00
errors.rs Remove redundant argument from subdiagnostic method 2024-06-18 15:42:11 +00:00
intrinsic.rs Rollup merge of #126159 - RalfJung:scalarint-size-mismatch, r=oli-obk 2024-06-10 21:12:25 +02:00
lib.rs Remove PrintBackendInfo trait 2024-06-21 19:26:06 +00:00
llvm_util.rs Remove PrintBackendInfo trait 2024-06-21 19:26:06 +00:00
mono_item.rs Remove #[macro_use] extern crate tracing from rustc_codegen_llvm. 2024-05-23 18:02:40 +10:00
type_.rs Remove type_i1 and type_struct from cg_ssa 2024-06-21 19:30:26 +00:00
type_of.rs Uplift TypeRelation and Relate 2024-06-01 12:50:58 -04:00
va_arg.rs Add arm64ec-pc-windows-msvc target 2024-03-06 17:49:37 -08:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00