diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-11-30 21:13:43 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-11-30 21:13:43 +0000 |
| commit | 3a6ac9f9b59b2bb07c9822c24141337dfea30a1d (patch) | |
| tree | fee6c19b91e9feddc2f5e4828f74d2c186fcdce3 | |
| parent | 28a661ec8032c9380a4ff5ed890ce881ba1ccc40 (diff) | |
| download | bcm5719-llvm-3a6ac9f9b59b2bb07c9822c24141337dfea30a1d.tar.gz bcm5719-llvm-3a6ac9f9b59b2bb07c9822c24141337dfea30a1d.zip | |
ScopInfo: Further simplify code
Acc==MA implies Acc->getAccessInstruction() == MA->getAccessInstruction().
Suggested as post-commit review for 254305 by Michael Kruse.
llvm-svn: 254327
| -rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 093cfb09af9..c2c73502fd7 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -1468,8 +1468,7 @@ void ScopStmt::removeMemoryAccesses(MemoryAccessList &InvMAs) { // together with all scalar accesses that were caused by them. for (MemoryAccess *MA : InvMAs) { auto Predicate = [&](MemoryAccess *Acc) { - return Acc == MA || - Acc->getAccessInstruction() == MA->getAccessInstruction(); + return Acc->getAccessInstruction() == MA->getAccessInstruction(); }; MemAccs.erase(std::remove_if(MemAccs.begin(), MemAccs.end(), Predicate), MemAccs.end()); |

