[compiler] Allow assigning ref-accessing functions to objects if not mutated (#34026)
Allows assigning a ref-accessing function to an object so long as that object is not subsequently transitively mutated. We should likely rewrite the ref validation to use the new mutation/aliasing effects, which would provide a more consistent behavior across instruction types and require fewer special cases like this. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34026). * #34027 * __->__ #34026 DiffTrain build for [04a7a61918522734a083bff37843865d7815d466](https://github.com/facebook/react/commit/04a7a61918522734a083bff37843865d7815d466)
J
josephsavona committed
880a03f99e19322220a1b2c65071a27b388cd837
Parent: e0a3dc5