diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-10 21:15:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-10 21:15:22 +0000 |
commit | 3687e34c2cc7ce435bc29e9cacdb4d7320890b91 (patch) | |
tree | 95035c96425823dbd3ff8574f2611659fe8043a9 /test/CodeGen/PowerPC/fabs.ll | |
parent | 308ae14239c1cbeb73da0726311ef558498cfab0 (diff) | |
download | external_llvm-3687e34c2cc7ce435bc29e9cacdb4d7320890b91.zip external_llvm-3687e34c2cc7ce435bc29e9cacdb4d7320890b91.tar.gz external_llvm-3687e34c2cc7ce435bc29e9cacdb4d7320890b91.tar.bz2 |
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
Diffstat (limited to 'test/CodeGen/PowerPC/fabs.ll')
0 files changed, 0 insertions, 0 deletions