[polly] r265883 - Do not allow exception handling code in SCoPs

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 14:55:59 PDT 2016


Author: jdoerfert
Date: Sat Apr  9 16:55:58 2016
New Revision: 265883

URL: http://llvm.org/viewvc/llvm-project?rev=265883&view=rev
Log:
Do not allow exception handling code in SCoPs

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=265883&r1=265882&r2=265883&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Sat Apr  9 16:55:58 2016
@@ -994,6 +994,9 @@ bool ScopDetection::isValidInstruction(I
       return false;
   }
 
+  if (isa<LandingPadInst>(&Inst) || isa<ResumeInst>(&Inst))
+    return false;
+
   // We only check the call instruction but not invoke instruction.
   if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
     if (isValidCallInst(*CI, Context))




More information about the llvm-commits mailing list