diff options
| author | Brian Gesiak <modocache@gmail.com> | 2017-05-06 16:22:53 +0000 |
|---|---|---|
| committer | Brian Gesiak <modocache@gmail.com> | 2017-05-06 16:22:53 +0000 |
| commit | 42461403b68a63555a0dffe306bb0fbc9a99393f (patch) | |
| tree | fc3a23bd11449f8569dc970c340cb3ba3da01337 /llvm/lib/Analysis/ScalarEvolutionNormalization.cpp | |
| parent | c348a8c747d07011727c5d43a1261468af3d4cf1 (diff) | |
| download | bcm5719-llvm-42461403b68a63555a0dffe306bb0fbc9a99393f.tar.gz bcm5719-llvm-42461403b68a63555a0dffe306bb0fbc9a99393f.zip | |
[Analysis] Print out unreachable loops
Summary:
When writing a loop pass I made a mistake and hit the assertion
"Unreachable block in loop". Later, I hit an assertion when I called
`BasicBlock::eraseFromParent()` incorrectly: "Use still stuck around
after Def is destroyed". This latter assertion, however, printed out
exactly which value is being deleted and what uses remain, which helped
me debug the issue.
To help people debugging their loop passes in the future, print out
exactly which basic block is unreachable in a loop.
Reviewers: sanjoy, hfinkel, mehdi_amini
Reviewed By: mehdi_amini
Subscribers: mzolotukhin
Differential Revision: https://reviews.llvm.org/D32878
llvm-svn: 302354
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionNormalization.cpp')
0 files changed, 0 insertions, 0 deletions

