SIGN IN SIGN UP

React Compiler: Avoid unnecessary clone in effect inference (#37207)

## Summary

In the mutation / aliasing inference, the state is used twice, and both
get cloned. Only one clone is necessary, the second can be safely moved.

This has minimal impact on peak memory usage, but it does reduce wall
time by *10%* on real Next.js benchmark apps.

## How did you test this change?

Ran against benchmark apps to confirm identical byte output.
Ran against the 1800+ Rust Compiler test fixtures.
A
Andrew Imm committed
8c94e0e1d90d5aa76d343a2a524bd22cba608f5f
Parent: 05769e0
Committed by GitHub <noreply@github.com> on 8/24/2026, 5:38:39 PM