llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Infinite loop in AlwaysInliner pass

Open aleden opened this issue 12 years ago • 2 comments

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.

aleden avatar Feb 25 '14 02:02 aleden

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.

ekatz avatar May 01 '20 09:05 ekatz

Last comment was asking for fresh reproducer

arsenm avatar Aug 13 '23 14:08 arsenm