Skip to content

Commit dabd634

Browse files
authored
[LVI] Remove unused get of Range metadata (#94914)
There is no test for this code and it also do not change the result of https://github.com/dtcxzyw/llvm-opt-benchmark when I run it locally. I have not been able to make a test for this and do not know how to handle the range attribute for this so maybe it shall be removed?
1 parent 10cd96d commit dabd634

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Analysis/LazyValueInfo.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,6 @@ LazyValueInfoImpl::getValueFromSimpleICmpCondition(CmpInst::Predicate Pred,
11161116
if (!R)
11171117
return std::nullopt;
11181118
RHSRange = toConstantRange(*R, RHS->getType());
1119-
} else if (Instruction *I = dyn_cast<Instruction>(RHS)) {
1120-
if (auto *Ranges = I->getMetadata(LLVMContext::MD_range))
1121-
RHSRange = getConstantRangeFromMetadata(*Ranges);
11221119
}
11231120

11241121
ConstantRange TrueValues =

0 commit comments

Comments
 (0)