[llvm] r244440 - [RegionInfo] More descriptive error messages in verifier
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 05:28:53 PDT 2015
Author: meinersbur
Date: Mon Aug 10 07:28:52 2015
New Revision: 244440
URL: http://llvm.org/viewvc/llvm-project?rev=244440&view=rev
Log:
[RegionInfo] More descriptive error messages in verifier
Modified:
llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h
Modified: llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h?rev=244440&r1=244439&r2=244440&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h Mon Aug 10 07:28:52 2015
@@ -236,7 +236,7 @@ std::string RegionBase<Tr>::getNameStr()
template <class Tr>
void RegionBase<Tr>::verifyBBInRegion(BlockT *BB) const {
if (!contains(BB))
- llvm_unreachable("Broken region found!");
+ llvm_unreachable("Broken region found: enumerated BB not in region!");
BlockT *entry = getEntry(), *exit = getExit();
@@ -244,7 +244,8 @@ void RegionBase<Tr>::verifyBBInRegion(Bl
SE = BlockTraits::child_end(BB);
SI != SE; ++SI) {
if (!contains(*SI) && exit != *SI)
- llvm_unreachable("Broken region found!");
+ llvm_unreachable("Broken region found: edges leaving the region must go "
+ "to the exit node!");
}
if (entry != BB) {
@@ -252,7 +253,8 @@ void RegionBase<Tr>::verifyBBInRegion(Bl
SE = InvBlockTraits::child_end(BB);
SI != SE; ++SI) {
if (!contains(*SI))
- llvm_unreachable("Broken region found!");
+ llvm_unreachable("Broken region found: edges entering the region must "
+ "go to the entry node!");
}
}
}
More information about the llvm-commits
mailing list