mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Fix Transforms/GVN/memcpy.ll, which Chris broke in r47275 by reordering the branches. memcpy's are a kind of CallInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acfab64631
commit
c2580ab9b0
@ -1121,7 +1121,8 @@ bool GVN::processMemCpy(MemCpyInst* M,
|
||||
dep == MemoryDependenceAnalysis::NonLocal)
|
||||
return false;
|
||||
else if (CallInst* C = dyn_cast<CallInst>(dep))
|
||||
return performReturnSlotOptzn(M, C, toErase);
|
||||
if (!isa<MemCpyInst>(C))
|
||||
return performReturnSlotOptzn(M, C, toErase);
|
||||
else if (!isa<MemCpyInst>(dep))
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user