Optimize FrameState::GetIteration() (in the PropagateOutputs() critical section).
Optimize FrameState::GetIteration() (in the PropagateOutputs() critical section).

Accessing the size of and indexing into a fixed-size InlinedVector is more expensive than indirecting via the raw data pointer. We call FrameState::GetIteration() many times during ExecutorState::PropagateOutputs() while holding the FrameState lock, which serializes concurrent node completion. This change reduces the time spent under the lock, and additionally optimizes for the common case where we are not executing in a loop (avoiding a DIVQ instruction when the iteration index is 0).

PiperOrigin-RevId: 267414728

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