eliminate dead variables, patch contributed by Gabor Greif!
[oota-llvm.git] / lib / Target / PowerPC / PPC32ISelSimple.cpp
index c3675dc2cda67ac2787b0ea546e0df5cbf9d1578..f2b5cec2e1990a533d34a17fdeacd62d47341116 100644 (file)
@@ -1914,7 +1914,6 @@ void PPC32ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
           case Intrinsic::readio: {
             // On PPC, memory operations are in-order.  Lower this intrinsic
             // into a volatile load.
-            Instruction *Before = CI->getPrev();
             LoadInst * LI = new LoadInst(CI->getOperand(1), "", true, CI);
             CI->replaceAllUsesWith(LI);
             BB->getInstList().erase(CI);
@@ -1923,7 +1922,6 @@ void PPC32ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
           case Intrinsic::writeio: {
             // On PPC, memory operations are in-order.  Lower this intrinsic
             // into a volatile store.
-            Instruction *Before = CI->getPrev();
             StoreInst *SI = new StoreInst(CI->getOperand(1),
                                           CI->getOperand(2), true, CI);
             CI->replaceAllUsesWith(SI);