[llvm] r290428 - [MemDep] NFC changes
Piotr Padlewski via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 23 05:13:32 PST 2016
Author: prazek
Date: Fri Dec 23 07:13:32 2016
New Revision: 290428
URL: http://llvm.org/viewvc/llvm-project?rev=290428&view=rev
Log:
[MemDep] NFC changes
Modified:
llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Modified: llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h?rev=290428&r1=290427&r2=290428&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h Fri Dec 23 07:13:32 2016
@@ -70,7 +70,7 @@ class MemDepResult {
/// 1. This could be a load or store for dependence queries on
/// load/store. The value loaded or stored is the produced value.
/// Note that the pointer operand may be different than that of the
- /// queried pointer due to must aliases and phi translation. Note
+ /// queried pointer due to must aliases and phi translation. Note
/// that the def may not be the same type as the query, the pointers
/// may just be must aliases.
/// 2. For loads and stores, this could be an allocation instruction. In
Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=290428&r1=290427&r2=290428&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Fri Dec 23 07:13:32 2016
@@ -349,7 +349,6 @@ MemoryDependenceResults::getInvariantGro
if (!InvariantGroupMD)
return MemDepResult::getUnknown();
- MemDepResult Result = MemDepResult::getUnknown();
SmallSet<Value *, 14> Seen;
// Queue to process all pointers that are equivalent to load operand.
SmallVector<Value *, 8> LoadOperandsQueue;
@@ -384,7 +383,7 @@ MemoryDependenceResults::getInvariantGro
return MemDepResult::getDef(U);
}
}
- return Result;
+ return MemDepResult::getUnknown();
}
MemDepResult MemoryDependenceResults::getSimplePointerDependencyFrom(
More information about the llvm-commits
mailing list