diff options
author | Vedant Kumar <vsk@apple.com> | 2020-03-03 11:08:48 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-03-03 13:00:52 -0800 |
commit | 2bf496620cbb52f918b24bfa4283f5712fb3b937 (patch) | |
tree | 5d4086450c775b858296c705935ad11eb7ccc3c2 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | e70a9f3850255cb610fc56a30dec6f52b9d734e9 (diff) | |
download | llvm-2bf496620cbb52f918b24bfa4283f5712fb3b937.zip llvm-2bf496620cbb52f918b24bfa4283f5712fb3b937.tar.gz llvm-2bf496620cbb52f918b24bfa4283f5712fb3b937.tar.bz2 |
[LiveDebugValues] Do not insert DBG_VALUEs after a MBB terminator
This fixes a miscompile that happened because a DBG_VALUE interfered
with the MachineOutliner's liveness analysis.
Inserting a DBG_VALUE after a terminator breaks predicates on MBB such
as isReturnBlock(). And the resulting DBG_VALUE cannot be "live".
I plan to introduce a MachineVerifier check for this situation in a
follow up.
rdar://59859175
Testing: check-llvm, LNT build with a stage2 compiler & entry values
enabled
Differential Revision: https://reviews.llvm.org/D75548
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions