Camil Demetrescu edited osr-llvm.tex  over 8 years ago

Commit id: 1be7f4181550f56e225b49a475001a05a30fd725

deletions | additions      

       

\fi  \subsection{Example}  To explain how\tinyvm\ implements in LLVM  the OSR approach of \mysection\ref{se:overview}, \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 according to some ordering 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]