[Refactor] Simplify memory access isWrite

llvm-svn: 211379
This commit is contained in:
Johannes Doerfert 2014-06-20 17:06:41 +00:00
parent ae4c9e7bc3
commit 5ec80c2a85
1 changed files with 1 additions and 3 deletions

View File

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