summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-query/QueryParserTest.cpp
diff options
context:
space:
mode:
authorKristina Bessonova <kbessonova@accesssoftek.com>2019-12-05 23:26:21 +0300
committerKristina Bessonova <kbessonova@accesssoftek.com>2019-12-26 21:01:59 +0300
commitcdd25a4c7410d9af69df4ebe0e640506b8e977b4 (patch)
treec2b2274ae458964c25f9a218c01d547eb6005135 /clang-tools-extra/unittests/clang-query/QueryParserTest.cpp
parent1edd9651307112447f83a0cd402ee23125f0fdb3 (diff)
downloadbcm5719-llvm-cdd25a4c7410d9af69df4ebe0e640506b8e977b4.tar.gz
bcm5719-llvm-cdd25a4c7410d9af69df4ebe0e640506b8e977b4.zip
[DebugInfo][SelectionDAG] Change order while transferring SDDbgValue to another node
SelectionDAG::transferDbgValues() can 'reattach' SDDbgValue from one to another node, but doesn't change its source order. If the destination node has the order greater than the SDDbgValue, there are two possible issues revealed later: * If debug info is attached to an instruction that is the first definition of a register, this ends up with a def-after-use and the debug info gets 'undef' later. * If MIR has another definition of a register above the debug info, the debug info may represent a source variable incorrectly because it appears (significantly) before an instruction corresponded to this debug info. So, the patch changes the order of an SDDbgValue when it is moved to a node with greater order. Reviewers: dblaikie, jmorse, aprantl Reviewed By: aprantl Subscribers: aprantl, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71175
Diffstat (limited to 'clang-tools-extra/unittests/clang-query/QueryParserTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud