[llvm-commits] Patch for pr12559: mark missing math LibCalls as unavailable on win32; fix SimplifyLibCalls to use TLI for floor etc.

Joe Groff arcata at gmail.com
Sun Apr 15 13:38:16 PDT 2012


On Sun, Apr 15, 2012 at 12:24 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> Joe,
>
> Ah, it seems we do not have good way for checking such tests....
> Everything I can imagine involves e.g. sed'ing the triple into .ll
> file...

Here's a patch for opt that makes it take an -mtriple option, and a
revised patch for pr12559 that tests that (float)floor, (float)ceil,
and (float)sqrt still optimize to single-precision libcalls for mingw
and win64 targets. (There doesn't appear to be such an optimization
implemented yet for other math libcalls available on Windows.)

-Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-opt-mtriple.diff
Type: application/octet-stream
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120415/25ada7d1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-pr12559-3.diff
Type: application/octet-stream
Size: 14992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120415/25ada7d1/attachment-0001.obj>


More information about the llvm-commits mailing list