[MemDep] NFC changes

llvm-svn: 290428
This commit is contained in:
Piotr Padlewski 2016-12-23 13:13:32 +00:00
parent 34f94384a5
commit 383edba1fd
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class MemDepResult {
/// 1. This could be a load or store for dependence queries on /// 1. This could be a load or store for dependence queries on
/// load/store. The value loaded or stored is the produced value. /// load/store. The value loaded or stored is the produced value.
/// Note that the pointer operand may be different than that of the /// 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 /// that the def may not be the same type as the query, the pointers
/// may just be must aliases. /// may just be must aliases.
/// 2. For loads and stores, this could be an allocation instruction. In /// 2. For loads and stores, this could be an allocation instruction. In

View File

@ -349,7 +349,6 @@ MemoryDependenceResults::getInvariantGroupPointerDependency(LoadInst *LI,
if (!InvariantGroupMD) if (!InvariantGroupMD)
return MemDepResult::getUnknown(); return MemDepResult::getUnknown();
MemDepResult Result = MemDepResult::getUnknown();
SmallSet<Value *, 14> Seen; SmallSet<Value *, 14> Seen;
// Queue to process all pointers that are equivalent to load operand. // Queue to process all pointers that are equivalent to load operand.
SmallVector<Value *, 8> LoadOperandsQueue; SmallVector<Value *, 8> LoadOperandsQueue;
@ -384,7 +383,7 @@ MemoryDependenceResults::getInvariantGroupPointerDependency(LoadInst *LI,
return MemDepResult::getDef(U); return MemDepResult::getDef(U);
} }
} }
return Result; return MemDepResult::getUnknown();
} }
MemDepResult MemoryDependenceResults::getSimplePointerDependencyFrom( MemDepResult MemoryDependenceResults::getSimplePointerDependencyFrom(