summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopDetection.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2016-04-09 21:55:58 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2016-04-09 21:55:58 +0000
commit81c41b99a78b73ab2b28079b2c7931479ec41f3d (patch)
tree6b0e986dfa39949fb0ee47fc26d472f6fba3bb70 /polly/lib/Analysis/ScopDetection.cpp
parent3c6a99b8186dd827828a0c8ef378c763b3876408 (diff)
downloadbcm5719-llvm-81c41b99a78b73ab2b28079b2c7931479ec41f3d.tar.gz
bcm5719-llvm-81c41b99a78b73ab2b28079b2c7931479ec41f3d.zip
Do not allow exception handling code in SCoPs
llvm-svn: 265883
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index c0dba128beb..ad2409b802d 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -994,6 +994,9 @@ bool ScopDetection::isValidInstruction(Instruction &Inst,
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))
OpenPOWER on IntegriCloud