llvm-project
cc539138 - [CodeGen] Use __extendhfsf2 and __truncsfhf2 by default (#126880)

Commit
1 year ago
[CodeGen] Use __extendhfsf2 and __truncsfhf2 by default (#126880) The standard libcalls for half to float and float to half conversion are __extendhfsf2 and __truncsfhf2. However, LLVM currently uses __gnu_h2f_ieee and __gnu_f2h_ieee instead. As far as I can tell, these libcalls are an ARM-ism and only provided by libgcc on that platform. compiler-rt always provides both libcalls. Use the standard libcalls by default, and only use the __gnu libcalls on ARM.
Author
Parents
Loading