[llvm-commits] [polly] r154258 - /polly/trunk/lib/Analysis/ScopDetection.cpp
Hongbin Zheng
etherzhhb at gmail.com
Sat Apr 7 05:29:17 PDT 2012
Author: ether
Date: Sat Apr 7 07:29:17 2012
New Revision: 154258
URL: http://llvm.org/viewvc/llvm-project?rev=154258&view=rev
Log:
Speed up SCoP detection time by checking the exit of the region first,
patched by Johannes Doerfert <johannes at jdoerfert.de>.
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=154258&r1=154257&r2=154258&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Sat Apr 7 07:29:17 2012
@@ -508,10 +508,10 @@
if (!R.isSimple())
INVALID(SimpleRegion, "Region not simple: " << R.getNameStr());
- if (!allBlocksValid(Context))
+ if (!isValidExit(Context))
return false;
- if (!isValidExit(Context))
+ if (!allBlocksValid(Context))
return false;
DEBUG(dbgs() << "OK\n");
More information about the llvm-commits
mailing list