[PATCH] D26749: Generate aeabi_cdcmple libcalls

Sjoerd Meijer via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 03:34:12 PST 2016


SjoerdMeijer added a comment.

Thanks for reviewing! And I do share your concerns a bit. I have explored doing this transformation earlier, but I was struggling with this as the softening of the float operands and generation of libcalls is done really early during type legalization. The problems is that this cdcmple EABI call is different, it returns its results in the status flags and then all is needed is a conditional branch on that (no cmp instruction needed). Trying to shoehorn and hook this all in type legalization also feels wrong and very fiddly (but I am new to isel). So the elegance of this patch and fixup is that it is really small, and yes, the less pretty part is that this is a fix up. Again, I am new to this bit of llvm, so if you have more tips/suggestions how to solve this with a "target specific SDNode", then they are more than welcome. 
Cheers,
Sjoerd.


https://reviews.llvm.org/D26749





More information about the llvm-commits mailing list