[PATCH] D57620: Optimize printf calls that don't use 128-bit floating-point values

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 1 15:13:34 PST 2019


sbc100 added inline comments.


================
Comment at: lib/Analysis/TargetLibraryInfo.cpp:157
+  if (T.getArch() != Triple::xcore && T.getArch() != Triple::tce &&
+      T.getOS() != Triple::WASI) {
     TLI.setUnavailable(LibFunc_iprintf);
----------------
This part is a separate and can be split out?


================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:2035
+        M->getOrInsertFunction(TLI->getName(LibFunc_iprintf),
+                               FT, Callee->getAttributes());
     CallInst *New = cast<CallInst>(CI->clone());
----------------
.. along with this?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57620/new/

https://reviews.llvm.org/D57620





More information about the llvm-commits mailing list