diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-04 23:16:41 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-07-07 23:08:10 -0700 |
| commit | 8cf2c71243f8c093e7728370e6653aa940dbaf22 (patch) | |
| tree | b5dc3967ac76d53e6df1e1499b81dfa7768e46af /compiler/rustc_codegen_gcc | |
| parent | 5adb489a8034f7b56b29f3b28af0813c866f679c (diff) | |
| download | rust-8cf2c71243f8c093e7728370e6653aa940dbaf22.tar.gz rust-8cf2c71243f8c093e7728370e6653aa940dbaf22.zip | |
Let `rvalue_creates_operand` return true for *all* `Rvalue::Aggregate`s
Inspired by <https://github.com/rust-lang/rust/pull/138759#discussion_r2156375342> where I noticed that we were nearly at this point, plus the comments I was writing in 143410 that reminded me a type-dependent `true` is fine. This PR splits the `OperandRef::builder` logic out to a separate type, with the updates needed to handle SIMD as well. In doing so, that makes the existing `Aggregate` path in `codegen_rvalue_operand` capable of handing SIMD values just fine. As a result, we no longer need to do layout calculations for aggregate result types when running the analysis to determine which things can be SSA in codegen.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
