aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2020-09-17 18:10:19 -0400
committerJames Y Knight <jyknight@google.com>2020-09-18 14:14:04 -0400
commitf7a53d82c0902147909f28a9295a9d00b4b27d38 (patch)
tree07b7219c8825dbcf460ff25a6debc16c63a72f15 /llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
parentecba9d793e205ac857196abbd00cd67777e6f51a (diff)
downloadllvm-f7a53d82c0902147909f28a9295a9d00b4b27d38.zip
llvm-f7a53d82c0902147909f28a9295a9d00b4b27d38.tar.gz
llvm-f7a53d82c0902147909f28a9295a9d00b4b27d38.tar.bz2
PR47468: Fix findPHICopyInsertPoint, so that copies aren't incorrectly inserted after an INLINEASM_BR.
findPHICopyInsertPoint special cases placement in a block with a callbr or invoke in it. In that case, we must ensure that the copy is placed before the INLINEASM_BR or call instruction, if the register is defined prior to that instruction, because it may jump out of the block. Previously, the code placed it immediately after the last def _or use_. This is wrong, if the use is the instruction which may jump. We could correctly place it immediately after the last def (ignoring uses), but that is non-optimal for register pressure. Instead, place the copy after the last def, or before the call/inlineasm_br, whichever is later. Differential Revision: https://reviews.llvm.org/D87865
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp')
0 files changed, 0 insertions, 0 deletions