Go to file
Brian Gesiak 42461403b6 [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
2017-05-06 16:22:53 +00:00
clang [sanitizer-coverage] implement -fsanitize-coverage=no-prune,... instead of a hidden -mllvm flag. clang part. 2017-05-05 23:28:18 +00:00
clang-tools-extra [clang-tidy] Use cxxStdInitializerListExpr in modernize-use-emplace 2017-05-05 23:00:37 +00:00
compiler-rt [builtins] Fixup emulated TLS for mingw. 2017-05-06 15:13:17 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Fix lgamma_r linking errors on Windows. It appears the normal lgamma function is thread safe anyway 2017-05-06 02:58:43 +00:00
libcxxabi [libcxxabi][CMake] Set library dir when built under runtimes/ 2017-05-04 06:04:49 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld Use the same terminology as ELF. 2017-05-05 23:52:24 +00:00
lldb Be a little more permissive in DynamicLoaderMacOS::CanLoadImage 2017-05-06 01:15:47 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm [Analysis] Print out unreachable loops 2017-05-06 16:22:53 +00:00
openmp [OpenMP] libomptarget: test correction for use with OpenMP 4.5 2017-04-27 18:54:00 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Known knowledge. 2017-05-06 14:03:58 +00:00