summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2018-05-30 04:48:29 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2018-05-30 04:48:29 +0000
commit3872c6c63383d48a5f940bf535877df45b18027f (patch)
treeaca5849b17fc3421bddf24010c9bac15444b4aac /llvm/lib/Support/SmallVector.cpp
parent4c2aa9fb0bad1192ac038bb1ac42828238a68670 (diff)
downloadbcm5719-llvm-3872c6c63383d48a5f940bf535877df45b18027f.tar.gz
bcm5719-llvm-3872c6c63383d48a5f940bf535877df45b18027f.zip
[PowerPC] fix broken JIT-compiled code with tail call optimization
The relocation for branch instructions in the dynamic loader of ExecutionEngine assumes branch instructions with R_PPC64_REL24 relocation type are only bl. However, with the tail call optimization, b instructions can be also used to jump into another function. This patch makes the relocation to keep bits in the branch instruction other than the jump offset to avoid relocation rewrites a b instruction into bl. Differential Revision: https://reviews.llvm.org/D47456 llvm-svn: 333502
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud