[llvm-bugs] [Bug 37929] JumpThreading can take take several minutes on large functions

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 25 19:19:20 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37929

Chijun Sima <simachijun at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simachijun at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
 Fixed By Commit(s)|                            |r345353

--- Comment #1 from Chijun Sima <simachijun at gmail.com> ---
The issue exposed by the reproducer is that JumpThreading is trying to update
the dominator tree with a great number of updates, which causes poor
performance because the time complexity of the incremental updating algorithm
is proportional to the number of updates. 

Fixed in r345353 (https://reviews.llvm.org/rL345353) by reconstructing the
dominator tree in this case. The time used by Dominator Tree updating reduces
from 297s to 0.15s by the commit when compiling the reproducer with -O3 + UBSan
locally.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181026/3268b5a5/attachment.html>


More information about the llvm-bugs mailing list