summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorStefan Pintilie <stefanp@ca.ibm.com>2020-04-23 21:04:11 -0500
committerStefan Pintilie <stefanp@ca.ibm.com>2020-04-27 12:55:08 -0500
commit1354a03e74c2f59e424dce12c0592c5ceecb0809 (patch)
tree515e19e01d82f1a561cde4c511817e1b1eedf403 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentbd60b2983e2f325c16a9294a44608d77b107decb (diff)
[PowerPC][Future] Implement PC Relative Tail Calls
Tail Calls were initially disabled for PC Relative code because it was not safe to make certain assumptions about the tail calls (namely that all compiled functions no longer used the TOC pointer in R2). However, once all of the TOC pointer references have been removed it is safe to tail call everything that was tail called prior to the PC relative additions as well as a number of new cases. For example, it is now possible to tail call indirect functions as there is no need to save and restore the TOC pointer for indirect functions if the caller is marked as may clobber R2 (st_other=1). For the same reason it is now also possible to tail call functions that are external. Differential Revision: https://reviews.llvm.org/D77788
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions