[Refactor] Simplify memory access isWrite
authorJohannes Doerfert <jdoerfert@codeaurora.org>
Fri, 20 Jun 2014 17:06:41 +0000 (17:06 +0000)
committerJohannes Doerfert <jdoerfert@codeaurora.org>
Fri, 20 Jun 2014 17:06:41 +0000 (17:06 +0000)
llvm-svn: 211379

polly/include/polly/ScopInfo.h

index 24b92ae..b91713a 100644 (file)
@@ -161,9 +161,7 @@ public:
   bool isMayWrite() const { return Type == MemoryAccess::MAY_WRITE; }
 
   /// @brief Is this a write memory access?
-  bool isWrite() const {
-    return Type == MemoryAccess::MUST_WRITE || Type == MemoryAccess::MAY_WRITE;
-  }
+  bool isWrite() const { return isMustWrite() || isMayWrite(); }
 
   isl_map *getAccessRelation() const;