OSDN Git Service

[RegionInfo] Verify getRegionFor
authorMichael Kruse <llvm@meinersbur.de>
Tue, 11 Aug 2015 15:16:43 +0000 (15:16 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 11 Aug 2015 15:16:43 +0000 (15:16 +0000)
commit58cee9e869103f4d8ee4c453274f2cfbd316a624
tree7af12d9ddb90bd8e65ddcc5e5f3afc9e68bd29ea
parent082a39c1fa8f32a4b02c8c49df8fc5978c78e89e
[RegionInfo] Verify getRegionFor

Summary:
Check the contents of BBtoRegion during analysis verification. It only takes place if -verify-region-info is passed or LLVM is compiled with XDEBUG.

RegionBase<Tr>::verifyRegion() also checks the RegionInfoBase<Tr>::VerifyRegionInfo flag, which is redundant, but verifyRegion() is public API and might be invoked from other sites. In order to avoid behavioral change, this check is not removed. In any case, no region will be verified unless VerifyRegionInfo is set.

Reviewers: grosser

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11872

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244611 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/RegionInfo.h
include/llvm/Analysis/RegionInfoImpl.h