mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -508,7 +508,7 @@ bool MemCpyOpt::performCallSlotOptzn(MemCpyInst *cpy, CallInst *C) {
|
||||
// because we'll need to do type comparisons based on the underlying type.
|
||||
Value *cpyDest = cpy->getDest();
|
||||
Value *cpySrc = cpy->getSource();
|
||||
CallSite CS = CallSite::get(C);
|
||||
CallSite CS(C);
|
||||
|
||||
// We need to be able to reason about the size of the memcpy, so we require
|
||||
// that it be a constant.
|
||||
@@ -636,10 +636,11 @@ bool MemCpyOpt::performCallSlotOptzn(MemCpyInst *cpy, CallInst *C) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// processMemCpy - perform simplication of memcpy's. If we have memcpy A which
|
||||
/// copies X to Y, and memcpy B which copies Y to Z, then we can rewrite B to be
|
||||
/// a memcpy from X to Z (or potentially a memmove, depending on circumstances).
|
||||
/// This allows later passes to remove the first memcpy altogether.
|
||||
/// processMemCpy - perform simplification of memcpy's. If we have memcpy A
|
||||
/// which copies X to Y, and memcpy B which copies Y to Z, then we can rewrite
|
||||
/// B to be a memcpy from X to Z (or potentially a memmove, depending on
|
||||
/// circumstances). This allows later passes to remove the first memcpy
|
||||
/// altogether.
|
||||
bool MemCpyOpt::processMemCpy(MemCpyInst *M) {
|
||||
MemoryDependenceAnalysis &MD = getAnalysis<MemoryDependenceAnalysis>();
|
||||
|
||||
|
Reference in New Issue
Block a user