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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 17 15:42:31 PDT 2018


efriedma added a comment.

> So maybe somehow check if module has only static functions (+main)?

You might be able to get this to work, but there are a lot of weird edge cases, and it wouldn't be very useful in practice; most programs have more than one source code file.

The practical approach would be to use something like llvm::PointerMayBeCaptured to prove no other thread knows the value of the FILE*.


Repository:
  rL LLVM

https://reviews.llvm.org/D45736





More information about the llvm-commits mailing list