[PATCH] D17473: [LoopUnroll] Avoid unnecessary DT recomputation.

Michael Zolotukhin via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 19:04:25 PST 2016


mzolotukhin created this revision.
mzolotukhin added reviewers: chandlerc, escha, jmolloy, hfinkel, sanjoy.
mzolotukhin added a subscriber: llvm-commits.
Herald added a subscriber: sanjoy.

When we completely unroll a loop, it's pretty easy to update DT in-place and
thus avoid rebuilding it. DT recalculation is one of the most time-consuming
tasks in loop-unroll, so avoiding it at least in case of full unroll should be
beneficial.

On some extreme (but still real-world) tests this patch improves compile time by
~2x.

http://reviews.llvm.org/D17473

Files:
  lib/Transforms/Utils/LoopUnroll.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17473.48569.patch
Type: text/x-patch
Size: 4127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160220/fc6ab225/attachment.bin>


More information about the llvm-commits mailing list