Files
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
..
2024-05-23 15:10:04 -04:00
2023-12-31 15:27:43 +08:00
2024-06-21 19:26:06 +00:00
2024-06-21 19:26:06 +00:00
2024-06-01 12:50:58 -04:00
2024-03-06 17:49:37 -08:00