[PATCH] D38341: [compiler-rt] Add back ARM EABI aliases where legal.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 17:36:39 PDT 2017


efriedma created this revision.
Herald added subscribers: kristof.beyls, dberris, aemerson.

r303188 removed all the uses of aliases for EABI functions from compiler-rt, because some of them had mismatched calling conventions. Obviously, we can't use aliases for functions which don't have the same calling convention, but that's only an issue for floating-point functions with the hardfloat ABI.  In other cases, the stubs increase size and reduce performance for no benefit.

This patch adds back the aliases, with appropriate checks to make sure they're only used in cases where the calling convention matches.


Repository:
  rL LLVM

https://reviews.llvm.org/D38341

Files:
  lib/builtins/adddf3.c
  lib/builtins/addsf3.c
  lib/builtins/ashldi3.c
  lib/builtins/ashrdi3.c
  lib/builtins/comparedf2.c
  lib/builtins/comparesf2.c
  lib/builtins/divdf3.c
  lib/builtins/divsf3.c
  lib/builtins/divsi3.c
  lib/builtins/extendhfsf2.c
  lib/builtins/extendsfdf2.c
  lib/builtins/fixdfdi.c
  lib/builtins/fixdfsi.c
  lib/builtins/fixsfdi.c
  lib/builtins/fixsfsi.c
  lib/builtins/fixunsdfdi.c
  lib/builtins/fixunsdfsi.c
  lib/builtins/fixunssfdi.c
  lib/builtins/fixunssfsi.c
  lib/builtins/floatdidf.c
  lib/builtins/floatdisf.c
  lib/builtins/floatsidf.c
  lib/builtins/floatsisf.c
  lib/builtins/floatundidf.c
  lib/builtins/floatundisf.c
  lib/builtins/floatunsidf.c
  lib/builtins/floatunsisf.c
  lib/builtins/int_lib.h
  lib/builtins/lshrdi3.c
  lib/builtins/muldf3.c
  lib/builtins/muldi3.c
  lib/builtins/mulsf3.c
  lib/builtins/negdf2.c
  lib/builtins/negsf2.c
  lib/builtins/subdf3.c
  lib/builtins/subsf3.c
  lib/builtins/truncdfhf2.c
  lib/builtins/truncdfsf2.c
  lib/builtins/truncsfhf2.c
  lib/builtins/udivsi3.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38341.116910.patch
Type: text/x-patch
Size: 17355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170928/e1591d2e/attachment.bin>


More information about the llvm-commits mailing list