Camil Demetrescu  over 8 years ago

Commit id: 739d20f8e5c558b0f7dd51a09b7145d24d38731a

deletions | additions      

       

\fi  \subsection{Example}  To explain how the OSR approach of \mysection\ref{se:overview} can be implemented in LLVM, we consider the simple example of \myfigure\ref{fi:isord-example}. Function {\tt isord} checks whether an array of numbers is sorted ordered  according to some ordering criterion  specified by a comparator. The scenario we explore is profile-driven optimization, where we dynamically divert control to a faster version if the number of iterations exceeds a certain threshold. \ifdefined\noauthorea  \begin{figure}[t]