[PATCH] D45736: [SimplifyLibcalls] Replace locked IO with unlocked IO

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 17:39:06 PDT 2018


xbolva00 added inline comments.


================
Comment at: lib/Analysis/TargetLibraryInfo.cpp:485
 
+  if (T.isOSLinux() || (T.isAndroid() && !T.isAndroidVersionLT(28))) {
+    // available IO unlocked variants on Linux and Android since Android P
----------------
xbolva00 wrote:
> if (T.isGNUEnvironment()) ?
@efriedma I updated patch to use the same way as we do for sincos - https://github.com/llvm-mirror/llvm/blob/af4d5d44bb6590140f7474323bbd11b78126a5be/lib/CodeGen/TargetLoweringBase.cpp#L164


https://reviews.llvm.org/D45736





More information about the llvm-commits mailing list