Skip to content

Commit

Permalink
Code cleanup: Replace TODO with Note regarding using a precise range …
Browse files Browse the repository at this point in the history
…for IntegralRnage. (#106982)
  • Loading branch information
JulieLeeMSFT authored Aug 27, 2024
1 parent 454dcce commit 2e60863
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coreclr/jit/assertionprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ bool IntegralRange::Contains(int64_t value) const
case NI_LZCNT_X64_LeadingZeroCount:
case NI_POPCNT_PopCount:
case NI_POPCNT_X64_PopCount:
// TODO-Casts: specify more precise ranges once "IntegralRange" supports them.
// Note: No advantage in using a precise range for IntegralRange.
// Example: IntCns = 42 gives [0..127] with a non -precise range, [42,42] with a precise range.
return {SymbolicIntegerValue::Zero, SymbolicIntegerValue::ByteMax};
#elif defined(TARGET_ARM64)
case NI_Vector64_op_Equality:
Expand All @@ -317,7 +318,8 @@ bool IntegralRange::Contains(int64_t value) const
case NI_ArmBase_LeadingZeroCount:
case NI_ArmBase_Arm64_LeadingZeroCount:
case NI_ArmBase_Arm64_LeadingSignCount:
// TODO-Casts: specify more precise ranges once "IntegralRange" supports them.
// Note: No advantage in using a precise range for IntegralRange.
// Example: IntCns = 42 gives [0..127] with a non -precise range, [42,42] with a precise range.
return {SymbolicIntegerValue::Zero, SymbolicIntegerValue::ByteMax};
#else
#error Unsupported platform
Expand Down

0 comments on commit 2e60863

Please sign in to comment.