remove dead variables
authorChris Lattner <sabre@nondot.org>
Sun, 14 May 2006 18:33:57 +0000 (18:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 May 2006 18:33:57 +0000 (18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28286 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/LevelRaise.cpp
lib/Transforms/Utils/SimplifyCFG.cpp

index 943000c96613e0ec969e5dfb94b97bcf204d7be6..9cbe3b813eba1620bd070563ea545a309dcbe76a 100644 (file)
@@ -103,7 +103,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
 
   if (CastInst *CI = dyn_cast<CastInst>(I)) {
     Value       *Src    = CI->getOperand(0);
-    Instruction *SrcI   = dyn_cast<Instruction>(Src); // Nonnull if instr source
     const Type  *DestTy = CI->getType();
 
     // Peephole optimize the following instruction:
index 3c6c02f7e992f2acab234098f2d68071b2ecf1fe..fb518b16fbb9dfc4966f2c808b04ad3fd8939e62 100644 (file)
@@ -901,8 +901,6 @@ HoistTerminator:
 /// across this block.
 static bool BlockIsSimpleEnoughToThreadThrough(BasicBlock *BB) {
   BranchInst *BI = cast<BranchInst>(BB->getTerminator());
-  Value *Cond = BI->getCondition();
-  
   unsigned Size = 0;
   
   // If this basic block contains anything other than a PHI (which controls the