aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/python-extensions.swig
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-09-24 17:03:18 -0700
committerEvgenii Stepanov <eugenis@google.com>2020-01-08 11:02:03 -0800
commitb675a7628ce6a21b1e4a71c079a67badfb8b073d (patch)
tree782914626e3d3bceeffe45a783525be95ce0c6b5 /lldb/scripts/Python/python-extensions.swig
parentba181d0063e43fb56938555112ab859f48aee287 (diff)
downloadllvm-b675a7628ce6a21b1e4a71c079a67badfb8b073d.zip
llvm-b675a7628ce6a21b1e4a71c079a67badfb8b073d.tar.gz
llvm-b675a7628ce6a21b1e4a71c079a67badfb8b073d.tar.bz2
Merge memtag instructions with adjacent stack slots.
Summary: Detect a run of memory tagging instructions for adjacent stack frame slots, and replace them with a shorter instruction sequence * replace STG + STG with ST2G * replace STGloop + STGloop with STGloop This code needs to run when stack slot offsets are already known, but before FrameIndex operands in STG instructions are eliminated; that's the reason for the new hook in PrologueEpilogue. This change modifies STGloop and STZGloop pseudos to take the size as an immediate integer operand, and base address as a FI operand when possible. This is needed to simplify recognizing an STGloop instruction as operating on a stack slot post-regalloc. This improves memtag code size by ~0.25%, and it looks like an additional ~0.1% is possible by rearranging the stack frame such that consecutive STG instructions reference adjacent slots (patch pending). Reviewers: pcc, ostannard Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70286
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
0 files changed, 0 insertions, 0 deletions