mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-18 05:50:38 +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)
|
dep == MemoryDependenceAnalysis::NonLocal)
|
||||||
return false;
|
return false;
|
||||||
else if (CallInst* C = dyn_cast<CallInst>(dep))
|
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))
|
else if (!isa<MemCpyInst>(dep))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user