summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2016-12-07 12:31:36 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2016-12-07 12:31:36 +0000
commitae5780104f1a784f5dffc6058125f6c686248ae9 (patch)
tree3cbc7bc55dad102484a58dd68c3c892fe40d12aa /llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
parent8893bd95f01538580eac61b65de48ee2a83d0763 (diff)
downloadbcm5719-llvm-ae5780104f1a784f5dffc6058125f6c686248ae9.tar.gz
bcm5719-llvm-ae5780104f1a784f5dffc6058125f6c686248ae9.zip
When GVN removes a redundant load, it should not modify the debug location of the dominating load.
In the case of a fully redundant load LI dominated by an equivalent load V, GVN should always preserve the original debug location of V. Otherwise, we risk to introduce an incorrect stepping. If V has debug info, then clearly it should not be modified. If V has a null debugloc, then it is still potentially incorrect to propagate LI's debugloc because LI may not post-dominate V. Differential Revision: https://reviews.llvm.org/D27468 llvm-svn: 288903
Diffstat (limited to 'llvm/lib/CodeGen/ResetMachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud