[llvm] r262648 - [ValueTracking] "constant fold" an experimental hidden option
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 3 11:50:32 PST 2016
Author: reames
Date: Thu Mar 3 13:50:32 2016
New Revision: 262648
URL: http://llvm.org/viewvc/llvm-project?rev=262648&view=rev
Log:
[ValueTracking] "constant fold" an experimental hidden option
Modified:
llvm/trunk/lib/Analysis/ValueTracking.cpp
Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=262648&r1=262647&r2=262648&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Thu Mar 3 13:50:32 2016
@@ -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 isKnownNonNullFromDominating
if (!Cmp)
continue;
- if (DomConditionsSingleCmpUse && !Cmp->hasOneUse())
- continue;
-
for (auto *CmpU : Cmp->users()) {
const BranchInst *BI = dyn_cast<BranchInst>(CmpU);
if (!BI)
More information about the llvm-commits
mailing list