mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[MemorySSA] Remove a redundant dyn_cast.
StartingAccess is a MemoryUseOrDef. No need to check again. llvm-svn: 326000
This commit is contained in:
parent
a708ff01af
commit
1ee0de3c35
@ -2029,9 +2029,8 @@ MemorySSA::CachingWalker::getClobberingMemoryAccess(MemoryAccess *MA) {
|
||||
// If this is an already optimized use or def, return the optimized result.
|
||||
// Note: Currently, we do not store the optimized def result because we'd need
|
||||
// a separate field, since we can't use it as the defining access.
|
||||
if (auto *MUD = dyn_cast<MemoryUseOrDef>(StartingAccess))
|
||||
if (MUD->isOptimized())
|
||||
return MUD->getOptimized();
|
||||
if (StartingAccess->isOptimized())
|
||||
return StartingAccess->getOptimized();
|
||||
|
||||
const Instruction *I = StartingAccess->getMemoryInst();
|
||||
UpwardsMemoryQuery Q(I, StartingAccess);
|
||||
|
Loading…
Reference in New Issue
Block a user