Infinite loop in AlwaysInliner pass
| Bugzilla Link | 18955 |
| Version | trunk |
| OS | Linux |
| Attachments | The two modules mentioned. |
| CC | @chandlerc,@ekatz,@hfinkel |
Extended Description
Attached is a tarball of two LLVM code modules which are nearly identical. When running
opt -O2 -o bad.bc bad.ll
opt rapidly consumes GiB's of memory and seems to run indefinitely (>10min). When running
opt -O2 -o good.bc good.ll
opt exits quickly. The difference between the two modules is 599 removals of the alwaysinline function attribute; therefore I believe the problem is in the AlwaysInliner pass. I also wrote code to only run the AlwaysInliner pass, and that produced the same result.
I have also experimentally observed this bug in the LLVM 3.4 and LLVM 3.0 releases.
The tarball is not attached, but rather a text file with an expired link to google drive.
I know it has been more than 6 years, but if you still have the testcase, please upload it again. If not, then I'm afraid there is nothing left but to close this bug as "invalid".
Regardless, there have been quite a few fixes, including for cases similar to what described, specifically commit rG825debe8.
Last comment was asking for fresh reproducer