diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-11-27 23:38:42 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-11-27 23:38:42 +0000 |
| commit | bd448674777fc0c88c8503015d5c74615ccc66ea (patch) | |
| tree | 688088a1c5b9d7915c0f0c306a1af12684060829 /lib/Target/XCore/XCoreTargetObjectFile.cpp | |
| parent | d99338105b607f0d0b33144515ad34c90da1d21c (diff) | |
| download | llvm-bd448674777fc0c88c8503015d5c74615ccc66ea.tar.gz llvm-bd448674777fc0c88c8503015d5c74615ccc66ea.tar.bz2 llvm-bd448674777fc0c88c8503015d5c74615ccc66ea.tar.xz | |
[mips] Implement the following optimizations using dominance information to
make PIC calls a little more efficient:
1. Remove instructions setting up $gp if it is known that a function has been
called at least once.
2. Save the address of a called function in a register instead of loading
it from the GOT at every call site.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
