summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-14 18:33:57 +0000
committerChris Lattner <sabre@nondot.org>2006-05-14 18:33:57 +0000
commit36a169e1a37898f1ff53b1ffa299d023814db43d (patch)
treec31bda324569256a1a9299d64f4abff4e3a669e6 /lib/Transforms
parent76b8a33f4a2b699212e94250234b2a53274953a1 (diff)
downloadllvm-36a169e1a37898f1ff53b1ffa299d023814db43d.tar.gz
llvm-36a169e1a37898f1ff53b1ffa299d023814db43d.tar.bz2
llvm-36a169e1a37898f1ff53b1ffa299d023814db43d.tar.xz
remove dead variables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/LevelRaise.cpp1
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 943000c966..9cbe3b813e 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<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:
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index 3c6c02f7e9..fb518b16fb 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<BranchInst>(BB->getTerminator());
- Value *Cond = BI->getCondition();
-
unsigned Size = 0;
// If this basic block contains anything other than a PHI (which controls the