[LLVMdev] Detrimental optimization for reducing relocations.

Jan Sjodin jan_sjodin at yahoo.com
Fri Mar 11 10:23:36 PST 2011


> From: Rafael Ávila de Espíndola <rafael.espindola at gmail.com>

> To: llvmdev at cs.uiuc.edu
> Sent: Thu, March 10, 2011 4:22:32 PM
> Subject: Re: [LLVMdev] Detrimental optimization for reducing relocations.
> 
> > So, clearly the optimization is making things worse. Would it be okay to  
>delete
> > this code and eliminate the isBaseAddressKnownZero? I would like  to get rid 
>of
> > it.
> 
> I think it is OK. I can see ld/gdb expecting a  relocation, but if that 
> is the case we should just have a flag saying it is  needed.
> 
> If you are really motivated to check it, run the gdb testsuite  with your 
> patch, but on ELF our debug info is still too big to be  usable.
> 
> > -  Jan
> 
> Cheers,
> Rafael

I ran the gdb tests with and without the patch and there was no difference. I 
attached the patch.

Thanks,
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0047_sectionbasezerodelete.patch
Type: application/octet-stream
Size: 2311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110311/a1a69878/attachment.obj>


More information about the llvm-dev mailing list