mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 23:29:51 +00:00
simplify this code again, try 2 :)
llvm-svn: 47319
This commit is contained in:
parent
d60bb0a64b
commit
0ee0f38084
@ -1220,13 +1220,11 @@ bool GVN::processInstruction(Instruction* I,
|
||||
if (dep == MemoryDependenceAnalysis::None ||
|
||||
dep == MemoryDependenceAnalysis::NonLocal)
|
||||
return false;
|
||||
else if (CallInst* C = dyn_cast<CallInst>(dep)) {
|
||||
if (!isa<MemCpyInst>(C))
|
||||
return performReturnSlotOptzn(M, C, toErase);
|
||||
} else if (!isa<MemCpyInst>(dep))
|
||||
return false;
|
||||
|
||||
return processMemCpy(M, cast<MemCpyInst>(dep), toErase);
|
||||
if (isa<MemCpyInst>(dep))
|
||||
return processMemCpy(M, cast<MemCpyInst>(dep), toErase);
|
||||
if (CallInst* C = dyn_cast<CallInst>(dep))
|
||||
return performReturnSlotOptzn(M, C, toErase);
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned num = VN.lookup_or_add(I);
|
||||
|
Loading…
Reference in New Issue
Block a user