[PATCH] [LoopAccesses] Add canAnalyzeLoop

Adam Nemet anemet at apple.com
Mon Feb 16 17:19:10 PST 2015


================
Comment at: lib/Analysis/LoopAccessAnalysis.cpp:1271-1273
@@ -1221,4 +1270,5 @@
   if (!LAI) {
     LAI = make_unique<LoopAccessInfo>(L, SE, DL, TLI, AA, DT);
-    LAI->analyzeLoop(Strides);
+    if (LAI->canAnalyzeLoop())
+      LAI->analyzeLoop(Strides);
 #ifndef NDEBUG
----------------
Based on Hal's comment to an earlier patch in the set, I will try to fold both of these into the constructor.

http://reviews.llvm.org/D7688

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list