mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
minor code simplification, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1120,12 +1120,10 @@ bool GVN::processMemCpy(MemCpyInst* M,
|
||||
if (dep == MemoryDependenceAnalysis::None ||
|
||||
dep == MemoryDependenceAnalysis::NonLocal)
|
||||
return false;
|
||||
else if (!isa<MemCpyInst>(dep)) {
|
||||
if (CallInst* C = dyn_cast<CallInst>(dep))
|
||||
else if (CallInst* C = dyn_cast<CallInst>(dep))
|
||||
return performReturnSlotOptzn(M, C, toErase);
|
||||
else
|
||||
else if (!isa<MemCpyInst>(dep))
|
||||
return false;
|
||||
}
|
||||
|
||||
// We can only transforms memcpy's where the dest of one is the source of the
|
||||
// other
|
||||
|
Reference in New Issue
Block a user