summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopDetection.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-11-21 09:07:30 +0000
committerTobias Grosser <tobias@grosser.es>2016-11-21 09:07:30 +0000
commit1f0236d8e5f5f3490aaa7c34a73d03396956bf5a (patch)
tree0704a8f7ced9f4eb35973fb025dc08623b99204c /polly/lib/Analysis/ScopDetection.cpp
parentb94e9b31d0d2edd8c2b4945e7d479ba5d73221e3 (diff)
downloadbcm5719-llvm-1f0236d8e5f5f3490aaa7c34a73d03396956bf5a.tar.gz
bcm5719-llvm-1f0236d8e5f5f3490aaa7c34a73d03396956bf5a.zip
[ScopDetect] Use mayReadOrWriteMemory to shorten condition
llvm-svn: 287525
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 336ae504fdb..70fa3aaf264 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -943,7 +943,7 @@ bool ScopDetection::isValidInstruction(Instruction &Inst,
return invalid<ReportFuncCall>(Context, /*Assert=*/true, &Inst);
}
- if (!Inst.mayWriteToMemory() && !Inst.mayReadFromMemory()) {
+ if (!Inst.mayReadOrWriteMemory()) {
if (!isa<AllocaInst>(Inst))
return true;
OpenPOWER on IntegriCloud