[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 Sep 23 12:01:42 PDT 2016


davidxl added inline comments.

================
Comment at: lib/Transforms/Utils/CondDeadCallElimination.cpp:162
@@ +161,3 @@
+  case LibFunc::atanl:
+  case LibFunc::cbrt:
+  case LibFunc::cbrtf:
----------------
Actually I think it is the wrong place to handle these no-errno functions here -- they should be handled by regular DCE pass.

In fact functions like ceil etc are already handled by DCE.

So my suggestion is to completely get rid of these no-side effect functions from this patch. Have a separate patch to fix CFE for the missing cases like asinh.


https://reviews.llvm.org/D24414





More information about the llvm-commits mailing list