diff options
author | Paul Walker <paul.walker@arm.com> | 2019-08-16 14:17:52 +0000 |
---|---|---|
committer | Paul Walker <paul.walker@arm.com> | 2019-08-16 14:17:52 +0000 |
commit | 3ccee5f7c4087ed119dbeba537f3df1b048a4dff (patch) | |
tree | 9fd966834a0da288ea9b4d8717817addf9e78b67 /lldb/source/Commands/CommandObjectMultiword.cpp | |
parent | 9da4989c523715f2fdf7d75a8c3c4fe980fec22b (diff) | |
download | bcm5719-llvm-3ccee5f7c4087ed119dbeba537f3df1b048a4dff.tar.gz bcm5719-llvm-3ccee5f7c4087ed119dbeba537f3df1b048a4dff.zip |
[AArch64InstrInfo] Stop getInstSizeInBytes returning non-zero for meta instructions.
Summary:
AArch64InstrInfo::getInstSizeInBytes is incorrectly treating meta
instructions (e.g. CFI_INSTRUCTION) as normal instructions and
giving them a size of 4.
This results in branch relaxation calculating block sizes wrong.
Branch relaxation also considers alignment and thus a single
mistake can result in later blocks being incorrectly sized even
when they themselves do not contain meta instructions.
The net result is we might not relax a branch whose destination is
not within range.
Reviewers: nickdesaulniers, peter.smith
Reviewed By: peter.smith
Subscribers: javed.absar, kristof.beyls, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66337
llvm-svn: 369111
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
0 files changed, 0 insertions, 0 deletions