aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2020-03-03 11:08:48 -0800
committerVedant Kumar <vsk@apple.com>2020-03-03 13:00:52 -0800
commit2bf496620cbb52f918b24bfa4283f5712fb3b937 (patch)
tree5d4086450c775b858296c705935ad11eb7ccc3c2 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parente70a9f3850255cb610fc56a30dec6f52b9d734e9 (diff)
downloadllvm-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