mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
isa+cast -> dyncast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47320 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a76a621a4
commit
e42ce73c37
@ -1220,8 +1220,8 @@ bool GVN::processInstruction(Instruction* I,
|
|||||||
if (dep == MemoryDependenceAnalysis::None ||
|
if (dep == MemoryDependenceAnalysis::None ||
|
||||||
dep == MemoryDependenceAnalysis::NonLocal)
|
dep == MemoryDependenceAnalysis::NonLocal)
|
||||||
return false;
|
return false;
|
||||||
if (isa<MemCpyInst>(dep))
|
if (MemCpyInst *MemCpy = dyn_cast<MemCpyInst>(dep))
|
||||||
return processMemCpy(M, cast<MemCpyInst>(dep), toErase);
|
return processMemCpy(M, MemCpy, toErase);
|
||||||
if (CallInst* C = dyn_cast<CallInst>(dep))
|
if (CallInst* C = dyn_cast<CallInst>(dep))
|
||||||
return performReturnSlotOptzn(M, C, toErase);
|
return performReturnSlotOptzn(M, C, toErase);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user