[polly] r303007 - [Simplify] Remove some leftover dead code
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sun May 14 02:20:56 PDT 2017
Author: grosser
Date: Sun May 14 04:20:56 2017
New Revision: 303007
URL: http://llvm.org/viewvc/llvm-project?rev=303007&view=rev
Log:
[Simplify] Remove some leftover dead code
Modified:
polly/trunk/lib/Transform/Simplify.cpp
Modified: polly/trunk/lib/Transform/Simplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/Simplify.cpp?rev=303007&r1=303006&r2=303007&view=diff
==============================================================================
--- polly/trunk/lib/Transform/Simplify.cpp (original)
+++ polly/trunk/lib/Transform/Simplify.cpp Sun May 14 04:20:56 2017
@@ -36,32 +36,6 @@ STATISTIC(TotalRedundantWritesRemoved,
"Number of writes of same value removed in any SCoP");
STATISTIC(TotalStmtsRemoved, "Number of statements removed in any SCoP");
-/// Find the llvm::Value that is written by a MemoryAccess. Return nullptr if
-/// there is no such unique value.
-static Value *getWrittenScalar(MemoryAccess *WA) {
- assert(WA->isWrite());
-
- if (WA->isOriginalAnyPHIKind()) {
- Value *Result = nullptr;
- for (auto Incoming : WA->getIncoming()) {
- assert(Incoming.second);
-
- if (!Result) {
- Result = Incoming.second;
- continue;
- }
-
- if (Result == Incoming.second)
- continue;
-
- return nullptr;
- }
- return Result;
- }
-
- return WA->getAccessInstruction();
-}
-
static bool isImplicitRead(MemoryAccess *MA) {
return MA->isRead() && MA->isOriginalScalarKind();
}
More information about the llvm-commits
mailing list