[polly] r198364 - ScopInfo: Ensure the RegionInfo analysis is always available
Tobias Grosser
tobias at grosser.es
Thu Jan 2 14:28:54 PST 2014
Author: grosser
Date: Thu Jan 2 16:28:53 2014
New Revision: 198364
URL: http://llvm.org/viewvc/llvm-project?rev=198364&view=rev
Log:
ScopInfo: Ensure the RegionInfo analysis is always available
This fixes a crash that appeared when generating dotty graphs for functions
without loops (for which we do not calculate polyhedral information).
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=198364&r1=198363&r2=198364&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Thu Jan 2 16:28:53 2014
@@ -714,12 +714,12 @@ void ScopDetection::printLocations(llvm:
bool ScopDetection::runOnFunction(llvm::Function &F) {
LI = &getAnalysis<LoopInfo>();
+ RI = &getAnalysis<RegionInfo>();
if (!DetectScopsWithoutLoops && LI->empty())
return false;
AA = &getAnalysis<AliasAnalysis>();
SE = &getAnalysis<ScalarEvolution>();
- RI = &getAnalysis<RegionInfo>();
Region *TopRegion = RI->getTopLevelRegion();
releaseMemory();
More information about the llvm-commits
mailing list