aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-16 21:36:02 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-16 21:36:02 +0000
commit5d82f09b53abbdc35f72e1c189918e6162944f19 (patch)
tree37b783d5f57cabcc69ce85a8e0b97702fa59ac7f /llvm/lib/Support/Threading.cpp
parentdaca3cc54a6f6ef51f05f6418b771d6634bd7510 (diff)
downloadllvm-5d82f09b53abbdc35f72e1c189918e6162944f19.zip
llvm-5d82f09b53abbdc35f72e1c189918e6162944f19.tar.gz
llvm-5d82f09b53abbdc35f72e1c189918e6162944f19.tar.bz2
[PPC64] Fix PR19893 - improve code generation for local function addresses
Rafael opened http://llvm.org/bugs/show_bug.cgi?id=19893 to track non-optimal code generation for forming a function address that is local to the compile unit. The existing code was treating both local and non-local functions identically. This patch fixes the problem by properly identifying local functions and generating the proper addis/addi code. I also noticed that Rafael's earlier changes to correct the surrounding code in PPCISelLowering.cpp were also needed for fast instruction selection in PPCFastISel.cpp, so this patch fixes that code as well. The existing test/CodeGen/PowerPC/func-addr.ll is modified to test the new code generation. I've added a -O0 run line to test the fast-isel code as well. Tested on powerpc64[le]-unknown-linux-gnu with no regressions. llvm-svn: 211056
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions