Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9a62b99

Browse files
committed
add fixme about potential perf
1 parent 2b4840b commit 9a62b99

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/gvn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
422422
let alloc_id = self
423423
.ecx
424424
.intern_with_temp_alloc(ty, |ecx, dest| {
425+
// FIXME: Can we speed it up by using `ecx.write_immediate(.ScalarPair(_), dest)`?
425426
for (field_index, op) in fields.iter().copied().enumerate() {
426427
let field_dest = ecx.project_field(dest, field_index)?;
427428
ecx.copy_op(op, &field_dest)?;

0 commit comments

Comments
 (0)