Allow to mutate the type of MLIR Value in-place
Allow to mutate the type of MLIR Value in-place

This avoid trashing memory by cloning and replaceAllUseswith when
performing type inference.

PiperOrigin-RevId: 240631137

karllessard/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,DavidNorman/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,karllessard/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,petewarden/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,xzturn/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,annarev/tensorflow,aam-at/tensorflow,xzturn/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,tensorflow/tensorflow,arborh/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,arborh/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,annarev/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,petewarden/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,sarvex/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,xzturn/tensorflow,xzturn/tensorflow,renyi533/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,gunan/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,arborh/tensorflow,aam-at/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,jhseu/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,karllessard/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,gunan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,arborh/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,renyi533/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,petewarden/tensorflow,renyi533/tensorflow,gunan/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,paolodedios/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,aldian/tensorflow,aam-at/tensorflow,karllessard/tensorflow,arborh/tensorflow,jhseu/tensorflow,xzturn/tensorflow,annarev/tensorflow,jhseu/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,aam-at/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,gunan/tensorflow,arborh/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,arborh/tensorflow,paolodedios/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,arborh/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,annarev/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,arborh/tensorflow,karllessard/tensorflow