ARM libgcc dependencies

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

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.

Evan