[PATCH] D24414: Conditionally eliminate library calls where the result value is not used
David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 11:05:56 PDT 2016
davidxl added inline comments.
================
Comment at: lib/Transforms/Utils/CondDeadCallElimination.cpp:312
+ // A possible improvement is to handle the calls with return valued being
+ // used, if there is API for fast libcall implementation (without setting
+ // errno). We can use the same framework to direct calls that known
----------------
used, if there is API .. ---> used. If there is an API ..
================
Comment at: lib/Transforms/Utils/CondDeadCallElimination.cpp:313
+ // used, if there is API for fast libcall implementation (without setting
+ // errno). We can use the same framework to direct calls that known
+ // errno-free to the new API calls.
----------------
errno). We ... --> errno, we ...
Also, the description should be :
.. can use the same framework to direct/wrap the call to the fast API in the error free path, and leave the original call in the slow path.
https://reviews.llvm.org/D24414
More information about the llvm-commits
mailing list