summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-03-03 19:50:32 +0000
committerPhilip Reames <listmail@philipreames.com>2016-03-03 19:50:32 +0000
commitb7270446cf0fdd7bb0b8aaedc31385d407db23ec (patch)
tree4b9c4b6da2438101158a81c67095bd8eaea356e2 /llvm/lib/Analysis/ValueTracking.cpp
parent4e442d75e59d2fd44c164b0d00b848eb6ebfd09d (diff)
downloadbcm5719-llvm-b7270446cf0fdd7bb0b8aaedc31385d407db23ec.tar.gz
bcm5719-llvm-b7270446cf0fdd7bb0b8aaedc31385d407db23ec.zip
[ValueTracking] "constant fold" an experimental hidden option
llvm-svn: 262648
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 5c26bc8ceeb..098da0afca5 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -50,10 +50,6 @@ const unsigned MaxDepth = 6;
static cl::opt<unsigned> DomConditionsMaxUses("dom-conditions-max-uses",
cl::Hidden, cl::init(20));
-// If true, don't consider only compares whose only use is a branch.
-static cl::opt<bool> DomConditionsSingleCmpUse("dom-conditions-single-cmp-use",
- cl::Hidden, cl::init(false));
-
/// Returns the bitwidth of the given scalar or pointer type (if unknown returns
/// 0). For vector types, returns the element type's bitwidth.
static unsigned getBitWidth(Type *Ty, const DataLayout &DL) {
@@ -3073,9 +3069,6 @@ static bool isKnownNonNullFromDominatingCondition(const Value *V,
if (!Cmp)
continue;
- if (DomConditionsSingleCmpUse && !Cmp->hasOneUse())
- continue;
-
for (auto *CmpU : Cmp->users()) {
const BranchInst *BI = dyn_cast<BranchInst>(CmpU);
if (!BI)
OpenPOWER on IntegriCloud