diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-08-17 14:46:56 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-08-17 14:46:56 +0000 |
commit | 8bff8325341ecc93369b92c3c56627e8cf5d26a7 (patch) | |
tree | dda84207b7af30f43bbef311eea048a732a852f4 /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp | |
parent | 9e50e915fa2cb54011bc837dd4dc7e1793d9f0de (diff) | |
download | bcm5719-llvm-8bff8325341ecc93369b92c3c56627e8cf5d26a7.tar.gz bcm5719-llvm-8bff8325341ecc93369b92c3c56627e8cf5d26a7.zip |
[X86] Fix liveness information when expanding X86::EH_SjLj_LongJmp64
test/CodeGen/X86/shadow-stack.ll has the following machine verifier
errors:
```
*** Bad machine code: Using a killed virtual register ***
- function: bar
- basic block: %bb.6 entry (0x7fdc81857818)
- instruction: %3:gr64 = MOV64rm killed %2:gr64, 1, $noreg, 8, $noreg
- operand 1: killed %2:gr64
*** Bad machine code: Using a killed virtual register ***
- function: bar
- basic block: %bb.6 entry (0x7fdc81857818)
- instruction: $rsp = MOV64rm killed %2:gr64, 1, $noreg, 16, $noreg
- operand 1: killed %2:gr64
*** Bad machine code: Virtual register killed in block, but needed live out. ***
- function: bar
- basic block: %bb.2 entry (0x7fdc818574f8)
Virtual register %2 is used after the block.
```
The fix here is to only copy the machine operand's register without the
kill flags for all the instructions except the very last one of the
sequence.
I had to insert dummy PHIs in the test case to force the NoPHI function
property to be set to false. More on this here: https://llvm.org/PR38439
Differential Revision: https://reviews.llvm.org/D50260
llvm-svn: 340033
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions