Iterate through snapshotted instructions in copy insertion.
Iterate through snapshotted instructions in copy insertion.

Otherwise if a while feed into another while as init, the init (while)
will be added back to the iteration list, which makes dataflow
analysis confused.

PiperOrigin-RevId: 300137503
Change-Id: I3d6d993d09a9f9cda1fa738c26a0bbb164b707e5

sarvex/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,aldian/tensorflow,annarev/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,aam-at/tensorflow,gunan/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,petewarden/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,xzturn/tensorflow,yongtang/tensorflow,karllessard/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,aldian/tensorflow,gunan/tensorflow,annarev/tensorflow,annarev/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,yongtang/tensorflow,aam-at/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,petewarden/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,sarvex/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,xzturn/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,gunan/tensorflow,davidzchen/tensorflow,aldian/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,sarvex/tensorflow,gunan/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,gunan/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,freedomtan/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,gautam1858/tensorflow,annarev/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,gunan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,gunan/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,yongtang/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,gunan/tensorflow,aam-at/tensorflow,petewarden/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,xzturn/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,aldian/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow,gunan/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow