1. Don't call Value::getName(), which is slow.
authorChris Lattner <sabre@nondot.org>
Mon, 10 Sep 2007 21:15:22 +0000 (21:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Sep 2007 21:15:22 +0000 (21:15 +0000)
commit87b51bc2b0e9bced27d6fd95573a3f21691a261c
tree95035c96425823dbd3ff8574f2611659fe8043a9
parent8d9455d4e4f63c368f17b74a36b472fc61685310
1. Don't call Value::getName(), which is slow.
2. Lower calls to fabs and friends to FABS nodes etc unless the function has
   internal linkage.  Before we wouldn't lower if it had a definition, which
   is incorrect.  This allows us to compile:

define double @fabs(double %f) {
        %tmp2 = tail call double @fabs( double %f )
        ret double %tmp2
}

into:

_fabs:
        fabs f1, f1
        blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41805 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp