Skip to content

Commit 93b1587

Browse files
committed
[LVI] Address review comments.
1 parent a9d3246 commit 93b1587

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/Analysis/LazyValueInfo.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -927,15 +927,6 @@ LazyValueInfoImpl::solveBlockValueBinaryOpImpl(
927927
Value *LHS = I->getOperand(0);
928928
Value *RHS = I->getOperand(1);
929929

930-
auto GetValueFromCondition =
931-
[&](Value *V, Value *Cond,
932-
bool CondIsTrue) -> std::optional<ConstantRange> {
933-
std::optional<ValueLatticeElement> OptVal = getBlockValue(V, BB, I);
934-
if (!OptVal)
935-
return std::nullopt;
936-
return OptVal->asConstantRange(V->getType());
937-
};
938-
939930
auto ThreadBinOpOverSelect =
940931
[&](Value *X, const ConstantRange &CRX, SelectInst *Y,
941932
bool XIsLHS) -> std::optional<ValueLatticeElement> {

0 commit comments

Comments
 (0)