[llvm-commits] Patch: compiler-rt/lib/divsi3.c: do not call udivsi3 directly

Sébastien Bourdeauducq sebastien.bourdeauducq at lekernel.net
Fri Jun 22 07:29:46 PDT 2012


On 06/22/2012 04:13 PM, Stephen Canon wrote:
> However, there is another approach we could use; for specific architectures that have only an unsigned or signed division, simply add an arch-specific implementation in compiler-rt/lib/$(ARCH)/.  I don't expect there will be too many of these, so this is not unreasonable.

The patch fixes this automatically for the most probable case (signed 
implemented on top of unsigned) with 1 line of code. Therefore, it is 
better than this last solution.

Sébastien



More information about the llvm-commits mailing list