[LLVMdev] ARM libgcc dependencies

Evan Cheng evan.cheng at apple.com
Sat Nov 15 01:18:10 PST 2008

You can specify a different libcall to eliminate libgcc dependency. If  
you want to expand the div into a serious of instructions you can  
custom expand it during the legalization phase.


On Nov 14, 2008, at 11:44 PM, Arlen Cox <arlencox at gmail.com> wrote:

> I was trying to build some code today for an ARM7TDMI, which does not
> have a hardware divider and I noticed that LLVM translated divide
> instructions into a call into libgcc's udivsi3.  Is there any way of
> removing this library dependency and allowing LLVM's link time
> optimizer optimize the generated division code (inline it, merge the
> div/mod if using both, etc)?
> Thanks much,
> Arlen
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list