Skip to content

Commit 059b0c2

Browse files
authored
[ValueTracking][NFC] Drop outdated TODO in canCreateUndefOrPoison (#139915)
The inrange constexpr GEP case is handled since 425cbbc.
1 parent ed572aa commit 059b0c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7786,10 +7786,7 @@ static bool canCreateUndefOrPoison(const Operator *Op, UndefPoisonKind Kind,
77867786
case Instruction::FMul:
77877787
case Instruction::FDiv:
77887788
case Instruction::FRem:
7789-
return false;
77907789
case Instruction::GetElementPtr:
7791-
// inbounds is handled above
7792-
// TODO: what about inrange on constexpr?
77937790
return false;
77947791
default: {
77957792
const auto *CE = dyn_cast<ConstantExpr>(Op);

0 commit comments

Comments
 (0)