Skip to content

Commit

Permalink
add fixme about potential perf
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jun 14, 2024
1 parent b375e33 commit 6c6de58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_mir_transform/src/gvn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
let alloc_id = self
.ecx
.intern_with_temp_alloc(ty, |ecx, dest| {
// FIXME: Can we speed it up by using `ecx.write_immediate(.ScalarPair(_), dest)`?
for (field_index, op) in fields.iter().copied().enumerate() {
let field_dest = ecx.project_field(dest, field_index)?;
ecx.copy_op(op, &field_dest)?;
Expand Down

0 comments on commit 6c6de58

Please sign in to comment.