[llvm-commits] [llvm] r159746 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jul 5 08:36:56 PDT 2012
On Jul 5, 2012, at 5:40 AM, Chandler Carruth <chandlerc at gmail.com> wrote:
> Author: chandlerc
> Date: Thu Jul 5 07:40:45 2012
> New Revision: 159746
>
> URL: http://llvm.org/viewvc/llvm-project?rev=159746&view=rev
> Log:
> Optimize extendIntervalEndTo a tiny bit by saving one call through the
> vector erase. No functionality changed.
This function is very hot when called from LiveInterval::extendInBlock(), and in that case it is known that the new live range doesn't overlap any existing live ranges.
You may be able to squeeze out a bit more performance by inlining a simpler extendIntervalEndTo() into extendInBlock(). The for-loop and std::max conditional are not needed in that case.
/jakob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120705/95d9f23e/attachment.html>
More information about the llvm-commits
mailing list