aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-04-14 21:27:56 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-04-14 21:27:56 +0000
commit53b54be5fcbc396c95939ad6069f35700d455713 (patch)
tree885d89b7a4a69806f6db55b290ca0519c1d245f9
parent8121fcd260ef4eac7825b29c200137af37f499b2 (diff)
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
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp10
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp10
2 files changed, 0 insertions, 20 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index 18b595fad8..0715e20c32 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -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:
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index 18b595fad8..0715e20c32 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -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: