Skip to content

Commit 6c6de58

Browse files
committed
add fixme about potential perf
1 parent b375e33 commit 6c6de58

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

Diff for: compiler/rustc_mir_transform/src/gvn.rs

+1
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
434434
let alloc_id = self
435435
.ecx
436436
.intern_with_temp_alloc(ty, |ecx, dest| {
437+
// FIXME: Can we speed it up by using `ecx.write_immediate(.ScalarPair(_), dest)`?
437438
for (field_index, op) in fields.iter().copied().enumerate() {
438439
let field_dest = ecx.project_field(dest, field_index)?;
439440
ecx.copy_op(op, &field_dest)?;

0 commit comments

Comments
 (0)