mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Handle an addrspacecast case in memcpyopt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -662,7 +662,7 @@ bool MemCpyOpt::performCallSlotOptzn(Instruction *cpy,
|
||||
while (!srcUseList.empty()) {
|
||||
User *UI = srcUseList.pop_back_val();
|
||||
|
||||
if (isa<BitCastInst>(UI)) {
|
||||
if (isa<BitCastInst>(UI) || isa<AddrSpaceCastInst>(UI)) {
|
||||
for (User::use_iterator I = UI->use_begin(), E = UI->use_end();
|
||||
I != E; ++I)
|
||||
srcUseList.push_back(*I);
|
||||
|
Reference in New Issue
Block a user