[PATCH] D42668: [Analysis] Disable log/log2/log10 finite lib calls on Android with -ffast-math.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 16:38:42 PST 2018


efriedma added inline comments.


================
Comment at: lib/Analysis/TargetLibraryInfo.cpp:413
   // The following functions are available on at least Linux:
   if (!T.isOSLinux()) {
     TLI.setUnavailable(LibFunc_dunder_strdup);
----------------
Instead of going through this process repeatedly, could we just change this line to "if (!T.isOSLinux() || T.isAndroid())"?


https://reviews.llvm.org/D42668





More information about the llvm-commits mailing list