summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@codeaurora.org>2014-06-20 17:06:41 +0000
committerJohannes Doerfert <jdoerfert@codeaurora.org>2014-06-20 17:06:41 +0000
commit5ec80c2a85f8378354c86463ec21ef5a53d0106d (patch)
tree309131259663d1f0598a7355099ae46e459e5b42
parentae4c9e7bc3cea05ed104e3532c4a9b5bc308401b (diff)
downloadbcm5719-llvm-5ec80c2a85f8378354c86463ec21ef5a53d0106d.tar.gz
bcm5719-llvm-5ec80c2a85f8378354c86463ec21ef5a53d0106d.zip
[Refactor] Simplify memory access isWrite
llvm-svn: 211379
-rw-r--r--polly/include/polly/ScopInfo.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 24b92aea215..b91713a6e8b 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -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;
OpenPOWER on IntegriCloud