mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
preserve line number info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -589,14 +589,15 @@ processLoopStoreOfLoopLoad(StoreInst *SI, unsigned StoreSize,
|
|||||||
Value *NumBytes =
|
Value *NumBytes =
|
||||||
Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator());
|
Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator());
|
||||||
|
|
||||||
Value *NewCall =
|
CallInst *NewCall =
|
||||||
Builder.CreateMemCpy(StoreBasePtr, LoadBasePtr, NumBytes,
|
Builder.CreateMemCpy(StoreBasePtr, LoadBasePtr, NumBytes,
|
||||||
std::min(SI->getAlignment(), LI->getAlignment()));
|
std::min(SI->getAlignment(), LI->getAlignment()));
|
||||||
|
NewCall->setDebugLoc(SI->getDebugLoc());
|
||||||
|
|
||||||
DEBUG(dbgs() << " Formed memcpy: " << *NewCall << "\n"
|
DEBUG(dbgs() << " Formed memcpy: " << *NewCall << "\n"
|
||||||
<< " from load ptr=" << *LoadEv << " at: " << *LI << "\n"
|
<< " from load ptr=" << *LoadEv << " at: " << *LI << "\n"
|
||||||
<< " from store ptr=" << *StoreEv << " at: " << *SI << "\n");
|
<< " from store ptr=" << *StoreEv << " at: " << *SI << "\n");
|
||||||
(void)NewCall;
|
|
||||||
|
|
||||||
// Okay, the memset has been formed. Zap the original store and anything that
|
// Okay, the memset has been formed. Zap the original store and anything that
|
||||||
// feeds into it.
|
// feeds into it.
|
||||||
|
Reference in New Issue
Block a user