diff options
author | Yuanfang Chen <yuanfang.chen@sony.com> | 2020-03-29 13:01:42 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2020-06-17 15:35:23 -0700 |
commit | 320907788da95386189be35c4480cb35ce896e8e (patch) | |
tree | 3d062583bbe58870d4b7eb5e00b90edde56bb7c3 /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespace.py | |
parent | dc94773a91c85a05f4f249153cb1e9522b3beb5e (diff) | |
download | bcm5719-llvm-320907788da95386189be35c4480cb35ce896e8e.tar.gz bcm5719-llvm-320907788da95386189be35c4480cb35ce896e8e.zip |
[X86] make sure POP has implicit def/use of stack pointer when materializing 8-bit immediates for minsize
Summary:
Otherwise PostRA list scheduler may reorder instruction, such as
schedule this
'''
pushq $0x8
pop %rbx
lea 0x2a0(%rsp),%r15
'''
to
'''
pushq $0x8
lea 0x2a0(%rsp),%r15
pop %rbx
'''
by mistake. The patch is to prevent this to happen by making sure POP has
implicit use of SP.
Reviewers: craig.topper
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77031
(cherry picked from commit ece79f47083babcabde3700c67b90ef19967a5b3)
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespace.py')
0 files changed, 0 insertions, 0 deletions