[polly] r287525 - [ScopDetect] Use mayReadOrWriteMemory to shorten condition

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 01:07:31 PST 2016


Author: grosser
Date: Mon Nov 21 03:07:30 2016
New Revision: 287525

URL: http://llvm.org/viewvc/llvm-project?rev=287525&view=rev
Log:
[ScopDetect] Use mayReadOrWriteMemory to shorten condition

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=287525&r1=287524&r2=287525&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Mon Nov 21 03:07:30 2016
@@ -943,7 +943,7 @@ bool ScopDetection::isValidInstruction(I
     return invalid<ReportFuncCall>(Context, /*Assert=*/true, &Inst);
   }
 
-  if (!Inst.mayWriteToMemory() && !Inst.mayReadFromMemory()) {
+  if (!Inst.mayReadOrWriteMemory()) {
     if (!isa<AllocaInst>(Inst))
       return true;
 




More information about the llvm-commits mailing list