summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit3237da073eb62a142fbc343ca2ceb4698ecbfbc0 (patch)
tree157ace97d5d7a4db29e2b8abb057f6e78925d71d /llvm/lib/Transforms
parent6b7a00869aebbde800e44a6e8de3e7edfb1e58c2 (diff)
downloadbcm5719-llvm-3237da073eb62a142fbc343ca2ceb4698ecbfbc0.tar.gz
bcm5719-llvm-3237da073eb62a142fbc343ca2ceb4698ecbfbc0.zip
remove dead variables
llvm-svn: 28286
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp1
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index 943000c9661..9cbe3b813eb 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/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/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 3c6c02f7e99..fb518b16fbb 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud