aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorMomchil Velikov <momchil.velikov@arm.com>2020-11-05 19:11:43 +0000
committerMomchil Velikov <momchil.velikov@arm.com>2020-11-05 19:26:51 +0000
commit5b30d9adc0536eee7fe0f164a550084916899acc (patch)
tree4c9da8a14a053d32db521e81d0748e79a4457341 /llvm/unittests/Support/CommandLineTest.cpp
parentf7bc56826616814a656866fd50e90a35a8e461eb (diff)
downloadllvm-5b30d9adc0536eee7fe0f164a550084916899acc.zip
llvm-5b30d9adc0536eee7fe0f164a550084916899acc.tar.gz
llvm-5b30d9adc0536eee7fe0f164a550084916899acc.tar.bz2
[MachineOutliner] Do not outline debug instructions
The debug location is removed from any outlined instruction. This causes the MachineVerifier to crash on outlined DBG_VALUE instructions. Then, debug instructions are "invisible" to the outliner, that is, two ranges of instructions from different functions are considered identical if the only difference is debug instructions. Since a debug instruction from one function is unlikely to provide sensible debug information about all functions, sharing an outlined sequence, this patch just removes debug instructions from the outlined functions. Differential Revision: https://reviews.llvm.org/D89485
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions