mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Remove code to adjust the iterator for llvm.readio and llvm.writeio.
The iterator is pointing at the next instruction which should not disappear when doing the load/store replacement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8121fcd260
commit
53b54be5fc
@ -1548,11 +1548,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
LoadInst * LI = new LoadInst (CI->getOperand(1), "", true, CI);
|
||||
CI->replaceAllUsesWith (LI);
|
||||
BB->getInstList().erase (CI);
|
||||
if (Before) { // Move iterator to instruction after call
|
||||
I = Before; ++I;
|
||||
} else {
|
||||
I = BB->begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Intrinsic::writeio: {
|
||||
@ -1563,11 +1558,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
CI->getOperand(2), true, CI);
|
||||
CI->replaceAllUsesWith (LI);
|
||||
BB->getInstList().erase (CI);
|
||||
if (Before) { // Move iterator to instruction after call
|
||||
I = Before; ++I;
|
||||
} else {
|
||||
I = BB->begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -1548,11 +1548,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
LoadInst * LI = new LoadInst (CI->getOperand(1), "", true, CI);
|
||||
CI->replaceAllUsesWith (LI);
|
||||
BB->getInstList().erase (CI);
|
||||
if (Before) { // Move iterator to instruction after call
|
||||
I = Before; ++I;
|
||||
} else {
|
||||
I = BB->begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Intrinsic::writeio: {
|
||||
@ -1563,11 +1558,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
CI->getOperand(2), true, CI);
|
||||
CI->replaceAllUsesWith (LI);
|
||||
BB->getInstList().erase (CI);
|
||||
if (Before) { // Move iterator to instruction after call
|
||||
I = Before; ++I;
|
||||
} else {
|
||||
I = BB->begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user