summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorSergey Dmitrouk <sdmitrouk@accesssoftek.com>2015-06-04 20:48:40 +0000
committerSergey Dmitrouk <sdmitrouk@accesssoftek.com>2015-06-04 20:48:40 +0000
commit3160d02b5b039d0b7b30c13e5410b9a1a5b6feed (patch)
tree342b3843402e530c7ab9907e5a988fb8eeffe560 /llvm/lib/MC/MachObjectWriter.cpp
parentd8445a5617d6af05883721afef4c32458923b7e3 (diff)
downloadbcm5719-llvm-3160d02b5b039d0b7b30c13e5410b9a1a5b6feed.tar.gz
bcm5719-llvm-3160d02b5b039d0b7b30c13e5410b9a1a5b6feed.zip
Erase constant dbgloc on reuse in PHI node
Basic block selection involves checking successor BBs for PHI nodes that depend on the current BB. In case such BBs are found, the value being selected is a constant and such constant already exists in current BB, it's value is reused. This might lead to wrong locations in some situations, especially if same constant value ends up being materialized twice in two different ways, which discards that sharing and leaves us with wrong debug location in the successor BB. In code this involves the following sequence of calls: SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks -> SelectionDAGBuilder::CopyValueToVirtualRegister -> SelectionDAGBuilder::getNonRegisterValue llvm-svn: 239089
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud