summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-19 22:02:26 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-19 22:02:26 +0000
commita90fdc434057683159dd31d0e1d7e8cd1da30627 (patch)
treedac713c2615b97ef93eb5c64809170f5e8b2ceaf /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
parent1651b7cd2db2719c39b4e2871b9e1a1ae28c8ef2 (diff)
downloadbcm5719-llvm-a90fdc434057683159dd31d0e1d7e8cd1da30627.tar.gz
bcm5719-llvm-a90fdc434057683159dd31d0e1d7e8cd1da30627.zip
Remove dead options.
llvm-svn: 48556
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
index d8b82b374dc..8762d3dd1bc 100644
--- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -30,17 +30,11 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/Support/CallSite.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
using namespace llvm;
-namespace {
- cl::opt<bool> OptExtUses("optimize-ext-uses",
- cl::init(true), cl::Hidden);
-}
-
namespace {
class VISIBILITY_HIDDEN CodeGenPrepare : public FunctionPass {
/// TLI - Keep a pointer of a TargetLowering to consult for determining
@@ -1098,7 +1092,7 @@ bool CodeGenPrepare::OptimizeBlock(BasicBlock &BB) {
MadeChange |= Change;
}
- if (OptExtUses && !Change && (isa<ZExtInst>(I) || isa<SExtInst>(I)))
+ if (!Change && (isa<ZExtInst>(I) || isa<SExtInst>(I)))
MadeChange |= OptimizeExtUses(I);
} else if (CmpInst *CI = dyn_cast<CmpInst>(I)) {
MadeChange |= OptimizeCmpExpression(CI);
OpenPOWER on IntegriCloud