From 36a169e1a37898f1ff53b1ffa299d023814db43d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 May 2006 18:33:57 +0000 Subject: [PATCH] remove dead variables git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28286 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/LevelRaise.cpp | 1 - lib/Transforms/Utils/SimplifyCFG.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index 943000c9661..9cbe3b813eb 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -103,7 +103,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { if (CastInst *CI = dyn_cast(I)) { Value *Src = CI->getOperand(0); - Instruction *SrcI = dyn_cast(Src); // Nonnull if instr source const Type *DestTy = CI->getType(); // Peephole optimize the following instruction: diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 3c6c02f7e99..fb518b16fbb 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -901,8 +901,6 @@ HoistTerminator: /// across this block. static bool BlockIsSimpleEnoughToThreadThrough(BasicBlock *BB) { BranchInst *BI = cast(BB->getTerminator()); - Value *Cond = BI->getCondition(); - unsigned Size = 0; // If this basic block contains anything other than a PHI (which controls the -- 2.11.0