[LLVMdev] ARM libgcc dependencies

Arlen Cox arlencox at gmail.com
Fri Nov 14 23:44:29 PST 2008


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



More information about the llvm-dev mailing list