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:
Owen Anderson 2008-02-19 02:53:23 +00:00
parent acfab64631
commit c2580ab9b0

View File

@ -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;