[PATCH] D45736: [SimplifyLibcalls] Replace locked IO with unlocked IO
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 17 14:08:18 PDT 2018
xbolva00 added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:122
+static bool isInThreadUnsafeFunction(CallInst *CI, IRBuilder<> &B) {
+ Function *F = CI->getFunction();
----------------
Maybe we could check for "main" function too and threat it as if it was a "static one"?
Repository:
rL LLVM
https://reviews.llvm.org/D45736
More information about the llvm-commits
mailing list