OSDN Git Service

Try to reduce the compile time impact of r161232.
authorBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 21:26:24 +0000 (21:26 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 21:26:24 +0000 (21:26 +0000)
commit982dc84762fc0c2ca35e6947d648a690dd22343c
tree35bb0712834aa0e97c82dfb442143fed8ca057a8
parent772af92cb16a5e11bd580f576643a6268e8a5bce
Try to reduce the compile time impact of r161232.

The previous change caused fast isel to not attempt handling any calls to
builtin functions.  That included things like "printf" and caused some
noticable regressions in compile time.  I wanted to avoid having fast isel
keep a separate list of functions that had to be kept in sync with what the
code in SelectionDAGBuilder.cpp was handling.  I've resolved that here by
moving the list into TargetLibraryInfo.  This is somewhat redundant in
SelectionDAGBuilder but it will ensure that we keep things consistent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161263 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp