From 1f0236d8e5f5f3490aaa7c34a73d03396956bf5a Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 21 Nov 2016 09:07:30 +0000 Subject: [PATCH] [ScopDetect] Use mayReadOrWriteMemory to shorten condition llvm-svn: 287525 --- polly/lib/Analysis/ScopDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 336ae50..70fa3aa 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -943,7 +943,7 @@ bool ScopDetection::isValidInstruction(Instruction &Inst, return invalid(Context, /*Assert=*/true, &Inst); } - if (!Inst.mayWriteToMemory() && !Inst.mayReadFromMemory()) { + if (!Inst.mayReadOrWriteMemory()) { if (!isa(Inst)) return true; -- 2.7.4