[Patch][Review Requested][Compilation Time] Recompute LoopDisposition/BlockDisposition every time

Gurd, Preston preston.gurd at intel.com
Mon Jan 28 15:41:49 PST 2013


This patch aims to improve compile time performance by removing getLoopDisposition(), which saves the result of ComputeLoopDisposition(), in favour of just recomputing the loop disposition each time it is needed. Similarly, remove getBlockDisposition in favour of just recomputing the block disposition when needed.

Although at first glance one might think that saving the result of computing a Loop or Block Disposition to avoid re-computing it later should be better than computing the Disposition each time, our benchmark results show a net reduction in back end compile time of ~1%. Only one benchmark (xcsoar) slowed slightly.

Patch by Wan Xiaofei.

PLEASE REVIEW. Thanks!

Preston


--
Preston Gurd <preston.gurd at intel.com>
  Intel Waterloo
  SSG/DPD/ECDL/DMP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130128/779ea642/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoopDisposition.patch
Type: application/octet-stream
Size: 7543 bytes
Desc: LoopDisposition.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130128/779ea642/attachment.obj>


More information about the llvm-commits mailing list