summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-05-06 16:22:53 +0000
committerBrian Gesiak <modocache@gmail.com>2017-05-06 16:22:53 +0000
commit42461403b68a63555a0dffe306bb0fbc9a99393f (patch)
treefc3a23bd11449f8569dc970c340cb3ba3da01337 /llvm/lib/Analysis/ScalarEvolutionNormalization.cpp
parentc348a8c747d07011727c5d43a1261468af3d4cf1 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud