New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 40986 - After r342578, excessive compile time building opencollada
Summary: After r342578, excessive compile time building opencollada
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: trunk
Hardware: PC All
: P enhancement
Assignee: Jonas Paulsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-06 11:46 PST by Dimitry Andric
Modified: 2019-03-11 12:27 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments
Unreduced test case for opencollada compiler hang (599.14 KB, application/x-xz)
2019-03-06 11:46 PST, Dimitry Andric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric 2019-03-06 11:46:16 PST
Created attachment 21571 [details]
Unreduced test case for opencollada compiler hang

As reported in https://bugs.freebsd.org/236313, building the opencollada port (see also <https://github.com/KhronosGroup/OpenCOLLADA>) takes an excessive amount of compile time when -O2 is enabled.

Bisection shows this increase in compile time was introduced by https://reviews.llvm.org/rL342578 ("[X86] Handle COPYs of physregs better (regalloc hints)").

I'm attaching the full original test case (8.9M .cpp file, ~231k lines) for now, since reducing it is rather time consuming.
Comment 1 Jonas Paulsson 2019-03-06 16:59:07 PST
Investigating.
Comment 2 Jonas Paulsson 2019-03-10 18:02:02 PDT
I managed to finally reduce the test case -- please try https://reviews.llvm.org/D59201 and see if it helps.
Comment 3 Dimitry Andric 2019-03-11 12:27:31 PDT
Fixed in https://reviews.llvm.org/rL355854