[llvm-branch-commits] [llvm-branch] r303992 - Merging part of 292188:

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri May 26 07:32:09 PDT 2017


Author: tstellar
Date: Fri May 26 09:32:08 2017
New Revision: 303992

URL: http://llvm.org/viewvc/llvm-project?rev=303992&view=rev
Log:
Merging part of 292188:

------------------------------------------------------------------------
r292188 | ab | 2017-01-16 22:10:02 -0500 (Mon, 16 Jan 2017) | 11 lines

[TLI] Add prototype checking for all remaining LibFuncs.

This is another step towards unifying all LibFunc prototype checks.
This work started in r267758 (D19469);  add the remaining checks.

Also add a unittest that checks each libfunc declared with a known-valid
and known-invalid prototype.  New libfuncs added in the future are
required to have prototype checking in place; the known-valid test will
fail otherwise.

Differential Revision: https://reviews.llvm.org/D28030
------------------------------------------------------------------------

This ports just the fix for the log1p LibFunc to fix a crash on
FreeBSD.  See PR32494 and PR32495.

Modified:
    llvm/branches/release_40/lib/Analysis/TargetLibraryInfo.cpp

Modified: llvm/branches/release_40/lib/Analysis/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_40/lib/Analysis/TargetLibraryInfo.cpp?rev=303992&r1=303991&r2=303992&view=diff
==============================================================================
--- llvm/branches/release_40/lib/Analysis/TargetLibraryInfo.cpp (original)
+++ llvm/branches/release_40/lib/Analysis/TargetLibraryInfo.cpp Fri May 26 09:32:08 2017
@@ -937,6 +937,7 @@ bool TargetLibraryInfoImpl::isValidProto
   case LibFunc::log10:
   case LibFunc::log10f:
   case LibFunc::log10l:
+  case LibFunc::log1p:
   case LibFunc::log2:
   case LibFunc::log2f:
   case LibFunc::log2l:




More information about the llvm-branch-commits mailing list