[llvm-commits] [PATCH v2 0/2] instcombine: wire up -fno-builtin to the library call simplifier

Meador Inge meadori at codesourcery.com
Thu Nov 8 14:21:00 PST 2012


As discussed here [1] the correct way to wire up -fno-builtin to the
instcombine library call simplifiers is to take advantage of the target
library information.  This patch set adds a few missing functions to the
TLI and adds the appropriate queries to the simplifier framework.  I have
also added new tests to tools/clang/test/CodeGen/libcalls-fno-builtin.c
for verifying the -fno-builtin behavior, but I will submit that patch to
cfe-commits.

OK?

[1] http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121105/155370.html

Meador Inge (2):
  Add more functions to the target library information.
  instcombine: Query target library information for libcall
    simplifications

 include/llvm/Target/TargetLibraryInfo.h   |   29 +++++++++++++++++++
 lib/Target/TargetLibraryInfo.cpp          |   18 ++++++++++++
 lib/Transforms/Utils/SimplifyLibCalls.cpp |   44 ++++++++++++++++-------------
 3 files changed, 72 insertions(+), 19 deletions(-)

-- 
1.7.10.2 (Apple Git-33)




More information about the llvm-commits mailing list