aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-09-13 07:45:17 +0000
committerDiana Picus <diana.picus@linaro.org>2016-09-13 07:45:17 +0000
commit4b9728818400bfa1dfa7255dce9fafd9f1a04526 (patch)
treeb8438c00f9c339435b763e203ed5c7dbaffef4cc /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parent4619c9e6a8849163ef3fc812e832de0ae8c8e23f (diff)
downloadllvm-4b9728818400bfa1dfa7255dce9fafd9f1a04526.zip
llvm-4b9728818400bfa1dfa7255dce9fafd9f1a04526.tar.gz
llvm-4b9728818400bfa1dfa7255dce9fafd9f1a04526.tar.bz2
[AArch64] Support stackmap/patchpoint in getInstSizeInBytes
We currently return 4 for stackmaps and patchpoints, which is very optimistic and can in rare cases cause the branch relaxation pass to fail to relax certain branches. This patch causes getInstSizeInBytes to return a pessimistic estimate of the size as the number of bytes requested in the stackmap/patchpoint. In the future, we could provide a more accurate estimate by sharing some of the logic in AArch64::LowerSTACKMAP/PATCHPOINT. Fixes part of https://llvm.org/bugs/show_bug.cgi?id=28750 Differential Revision: https://reviews.llvm.org/D24073 llvm-svn: 281301
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions