llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.04k stars 11.58k forks source link

opt -std-compile-opts drops "gc" attribute #2250

Closed llvmbot closed 16 years ago

llvmbot commented 16 years ago
Bugzilla Link 1878
Resolution FIXED
Resolved on Dec 25, 2007 20:48
Version trunk
OS All
Attachments Armin's input
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

Armin Rigo reports from the PyPy project:

Here is what appears to be another bug of 'opt': the "gc" annotation is sometimes lost, or so it seems. With the following input (140k gzip):

http://wyvern.cs.uni-duesseldorf.de/~arigo/new_entrypoint.ll.gz

and the following command:

llvm-as < new_entrypoint.ll | opt -std-compile-opts > new_entrypoint.bc

then llvm-dis shows that in the .bc file, the function @​pypy_SemiSpaceGC_malloc_varsize_clear has lost its gc "gcrootsingle" attribute.

I'll need to do some further investigation to reduce the input and discover which pass is at fault.

llvmbot commented 16 years ago

Fixed here:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071224/056598.html http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071224/056599.html